fix container image
This commit is contained in:
parent
149d7d424f
commit
4bcb6a8660
10
Dockerfile
10
Dockerfile
@ -10,15 +10,13 @@ FROM alpine:latest
|
|||||||
RUN \
|
RUN \
|
||||||
apk -U upgrade && \
|
apk -U upgrade && \
|
||||||
apk add nginx curl logrotate && \
|
apk add nginx curl logrotate && \
|
||||||
mkdir -p /wwwroot /logs
|
mkdir -p /wwwroot /logs && \
|
||||||
|
|
||||||
COPY docker/rootfs /
|
|
||||||
COPY --from=hugobuild /src/public /wwwroot/
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
chown -R nginx:www-data /wwwroot /logs && \
|
chown -R nginx:www-data /wwwroot /logs && \
|
||||||
chmod -R a-x,a=rX,ug+w /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
|
# config test
|
||||||
RUN nginx -t
|
RUN nginx -t
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user