bglug.it/Dockerfile
paspo 9dea09f412
Some checks failed
Container Publish / build-image (push) Failing after 4m46s
fix chmod (#240)
questa notazione è più compatibile

Reviewed-on: #240
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-19 19:19:07 +00:00

20 lines
514 B
Docker

FROM alpine:latest
RUN \
apk -U upgrade && \
apk add nginx curl logrotate && \
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 /webroot/ -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 [ "/bin/sh", "/app/entrypoint.sh" ]