forked from BgLUG/bglug.it
added tini (#307)
tini: - elimina gli eventuali zombie (quindi ci serve per halloween) - permette di inoltrare tutti i signal, soprattutto il TERM, cosa che ad ora non succede Reviewed-on: BgLUG/bglug.it#307 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
dd23a488b4
commit
639eaa88bc
@ -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" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user