monolang/mkdocs-git.containerfile: update

Changed back to nginx:alpine while retaining the py venv.
This commit is contained in:
Luc Bijl 2025-07-20 18:29:09 +02:00
parent 7b7ed899fb
commit 4cbe2827b6

View file

@ -1,4 +1,4 @@
FROM python:alpine
FROM nginx:alpine
# Set environment variables
ENV PORT="80"
@ -6,7 +6,7 @@ ENV VIRTUAL_ENV="/mkdocs"
ENV PATH = "$VIRTUAL_ENV/bin:$PATH"
# Install necessary packages
RUN apk add --no-cache git nginx envsubst
RUN apk add --no-cache git py3-pip envsubst
# Create work directory
RUN mkdir /mkdocs
@ -30,17 +30,10 @@ RUN touch /docker-entrypoint.d/port.sh \
COPY root /etc/crontabs/root
# Configure mkdocs-git
COPY root /etc/crontabs/root
COPY mkdocs-git /bin/mkdocs-git
RUN chmod 744 /bin/mkdocs-git
# Configure cron entrypoints
RUN touch /docker-entrypoint.d/cron.sh \
&& echo "exec crond" > /docker-entrypoint.d/cron.sh \
&& chmod 776 /docker-entrypoint.d/cron.sh
# Expose the port
EXPOSE $PORT
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
&& chmod 776 /docker-entrypoint.d/cron.sh