dockerfile non builda hugo
This commit is contained in:
parent
2dfee211b1
commit
a276bd1118
@ -1,10 +1,3 @@
|
|||||||
FROM git.libreschool.org/bglug/hugo-extended:latest AS hugobuild
|
|
||||||
|
|
||||||
COPY . /src
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
hugo -s /src --gc --minify
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@ -15,7 +8,7 @@ RUN \
|
|||||||
chmod -R a-x,a=rX,ug+w /wwwroot /logs
|
chmod -R a-x,a=rX,ug+w /wwwroot /logs
|
||||||
|
|
||||||
COPY docker/rootfs /
|
COPY docker/rootfs /
|
||||||
COPY --from=hugobuild --chown=nginx:www-data --chmod=a-x,a=rX,ug+w /src/public /wwwroot/
|
COPY --chown=nginx:www-data --chmod=a-x,a=rX,ug+w public/ /wwwroot/
|
||||||
|
|
||||||
# config test
|
# config test
|
||||||
RUN nginx -t
|
RUN nginx -t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user