bglug.it/Dockerfile
paspo 639eaa88bc
All checks were successful
Container Publish / build-image (push) Successful in 6m30s
Vulnerability Scan / Daily Vulnerability Scan (push) Successful in 1m18s
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: #307
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-10-24 19:52:38 +00:00

21 lines
544 B
Docker

FROM alpine:latest
RUN \
apk -U upgrade && \
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
COPY docker/rootfs /
COPY --chown=nginx:www-data public/ /wwwroot/
RUN find /wwwroot/ -type d -exec chmod 755 {} \; -o -type f -exec chmod 644 {} \;
# config test
RUN nginx -t
HEALTHCHECK --timeout=10s CMD curl --silent --fail -o /dev/null http://127.0.0.1:80/
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "/bin/sh", "/app/entrypoint.sh" ]