fix container image #137

Merged
paspo merged 1 commits from paspo/bglug.it:fix-dockerfile into main 2024-07-21 15:50:45 +00:00

View File

@ -10,15 +10,13 @@ FROM alpine:latest
RUN \
apk -U upgrade && \
apk add nginx curl logrotate && \
mkdir -p /wwwroot /logs
COPY docker/rootfs /
COPY --from=hugobuild /src/public /wwwroot/
RUN \
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 --from=hugobuild --chown=nginx:www-data --chmod=a-x,a=rX,ug+w /src/public /wwwroot/
# config test
RUN nginx -t