fix container image (#137)
fix #135 Reviewed-on: #137 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
69d92035fc
commit
830e51ce87
10
Dockerfile
10
Dockerfile
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user