Commit: 9383b09
Parent: c7da9b7

WIP: I don't know

Mårten Åsberg committed on 2025-11-22 at 20:59
I mean, I don't know better than that AI, but it can't seem to fix it either 🤷
SmartHttpClone.containerfile +4 -3
diff --git a/SmartHttpClone.containerfile b/SmartHttpClone.containerfile
index bdc4eeb..0dd34d1 100644
@@ -6,9 +6,10 @@ RUN apt-get update && apt-get install -y \
spawn-fcgi \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -r -s /bin/bash git && \
mkdir -p /git && \
chown git:git /git
RUN groupadd -g 1001 git && \
useradd -r -u 1001 -g git -s /bin/bash git && \
mkdir -p /git /var/run/fcgiwrap && \
chown git:git /git /var/run/fcgiwrap
COPY nginx.conf /etc/nginx/nginx.conf
COPY entrypoint.sh /entrypoint.sh
entrypoint.sh +2 -9
diff --git a/entrypoint.sh b/entrypoint.sh
index 883091f..1730f52 100644
@@ -1,15 +1,8 @@
#!/bin/bash
set -e
# Create directory for the socket
mkdir -p /var/run/fcgiwrap
chown git:git /var/run/fcgiwrap
# Start fcgiwrap as git user
spawn-fcgi -s /var/run/fcgiwrap/fcgiwrap.socket -U nginx -u git -g git -- /usr/sbin/fcgiwrap
# Make sure nginx can access the socket
chmod 660 /var/run/fcgiwrap/fcgiwrap.socket
# Start fcgiwrap (will run as current user when container runs as --user 1001:1001)
spawn-fcgi -s /var/run/fcgiwrap/fcgiwrap.socket -- /usr/sbin/fcgiwrap
# Start nginx in foreground
exec nginx -g 'daemon off;'
nginx.conf +2 -3
diff --git a/nginx.conf b/nginx.conf
index cafa9cd..ff84710 100644
@@ -1,8 +1,7 @@
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
user git;
error_log /tmp/nginx-error.log;
pid /tmp/nginx.pid;
events {
worker_connections 1024;