Use nginx container-specific init folder

This commit is contained in:
2023-08-29 12:06:21 +02:00
parent 89c55a4a90
commit 11edf32c68
3 changed files with 16 additions and 22 deletions

View File

@@ -4,12 +4,4 @@ FROM nginx:mainline-alpine
RUN apk add hugo git
# Copy over auxiliary scripts
COPY aux /aux
# Cron hook for pulling and building
RUN echo "10 * * * * /aux/pull-n-build.sh" >> /var/spool/cron/crontabs/root
# bootstrap script, basically cron && build
# after that, the base-image-specific CMD will kick in, which is quite complex
ENTRYPOINT /aux/bootstrap.sh
COPY aux/* /docker-entrypoint.d/