2024-04-09 22:10:09 +02:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
apk -U upgrade && \
|
2024-10-24 15:34:09 +02:00
|
|
|
apk add nginx curl logrotate tini && \
|
2024-07-21 15:50:44 +00:00
|
|
|
mkdir -p /wwwroot /logs && \
|
2024-04-09 22:10:09 +02:00
|
|
|
chown -R nginx:www-data /wwwroot /logs && \
|
|
|
|
chmod -R a-x,a=rX,ug+w /wwwroot /logs
|
|
|
|
|
2024-07-21 15:50:44 +00:00
|
|
|
COPY docker/rootfs /
|
2024-09-19 19:19:07 +00:00
|
|
|
COPY --chown=nginx:www-data public/ /wwwroot/
|
2024-09-19 20:38:02 +00:00
|
|
|
RUN find /wwwroot/ -type d -exec chmod 755 {} \; -o -type f -exec chmod 644 {} \;
|
2024-07-21 15:50:44 +00:00
|
|
|
|
2024-04-09 22:10:09 +02:00
|
|
|
# config test
|
|
|
|
RUN nginx -t
|
|
|
|
|
|
|
|
HEALTHCHECK --timeout=10s CMD curl --silent --fail -o /dev/null http://127.0.0.1:80/
|
|
|
|
|
2024-10-24 15:34:09 +02:00
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
|
|
CMD [ "/bin/sh", "/app/entrypoint.sh" ]
|