File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,22 @@ ENV GOPATH /go
44
55RUN \
66 adduser -h /site -s /sbin/nologin -u 1000 -D hugo && \
7- apk add --no-cache dumb-init && \
8- apk add --no-cache --virtual .build-deps \
9- git \
10- make && \
7+ apk add --no-cache \
8+ dumb-init \
9+ git && \
1110 go get github.com/kardianos/govendor && \
1211 govendor get github.com/gohugoio/hugo && \
1312 cd $GOPATH/src/github.com/gohugoio/hugo && \
14- make install test && \
15- rm -rf $GOPATH/src/* && \
16- apk del .build-deps
17-
18- USER hugo
13+ go install && \
14+ cd $GOPATH && \
15+ rm -rf pkg src .cache bin/govendor && \
16+ apk del --no-cache git go
1917
18+ USER hugo
2019WORKDIR /site
21-
22- EXPOSE 1313
20+ VOLUME /site
21+ EXPOSE 1313
2322
2423ENTRYPOINT ["/usr/bin/dumb-init" , "--" , "hugo" ]
25-
2624CMD [ "--help" ]
2725
You can’t perform that action at this time.
0 commit comments