📄 SmartHttpClone.containerfile
FROM nginx:1.29.3@sha256:553f64aecdc31b5bf944521731cd70e35da4faed96b2b7548a3d8e2598c52a42

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"]