added tini
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 2m33s

This commit is contained in:
Paolo Asperti 2024-10-24 15:34:09 +02:00
parent dd23a488b4
commit 16cfaa5d10
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -2,7 +2,7 @@ FROM alpine:latest
RUN \
apk -U upgrade && \
apk add nginx curl logrotate && \
apk add nginx curl logrotate tini && \
mkdir -p /wwwroot /logs && \
chown -R nginx:www-data /wwwroot /logs && \
chmod -R a-x,a=rX,ug+w /wwwroot /logs
@ -16,4 +16,5 @@ RUN nginx -t
HEALTHCHECK --timeout=10s CMD curl --silent --fail -o /dev/null http://127.0.0.1:80/
ENTRYPOINT [ "/bin/sh", "/app/entrypoint.sh" ]
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "/bin/sh", "/app/entrypoint.sh" ]