Commit: e75e6a9
Parent: 8752e92

WIP: AI "help" for "fixing" smart HTTP clone

Mårten Åsberg committed on 2025-11-22 at 20:52
SmartHttpClone.containerfile +15 -1
diff --git a/SmartHttpClone.containerfile b/SmartHttpClone.containerfile
index 5d9b014..bdc4eeb 100644
@@ -1,5 +1,19 @@
FROM nginx:1.29.3@sha256:553f64aecdc31b5bf944521731cd70e35da4faed96b2b7548a3d8e2598c52a42
RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install -y \
git \
fcgiwrap \
spawn-fcgi \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -r -s /bin/bash git && \
mkdir -p /git && \
chown git:git /git
COPY nginx.conf /etc/nginx/nginx.conf
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
entrypoint.sh +11 -0
diff --git a/entrypoint.sh b/entrypoint.sh
new file mode 100644
index 0000000..73e4af1
@@ -0,0 +1,11 @@
#!/bin/bash
set -e
# Start fcgiwrap as git user
spawn-fcgi -s /var/run/fcgiwrap.socket -U nginx -u git -g git -- /usr/sbin/fcgiwrap
# Make sure nginx can access the socket
chmod 660 /var/run/fcgiwrap.socket
# Start nginx in foreground
exec nginx -g 'daemon off;'
nginx.conf +1 -0
diff --git a/nginx.conf b/nginx.conf
index 7652c08..1fba06f 100644
@@ -23,6 +23,7 @@ http {
fastcgi_param GIT_HTTP_EXPORT_ALL "0";
fastcgi_param GIT_PROJECT_ROOT /git;
fastcgi_param PATH_INFO $1;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
}