diff options
| -rw-r--r-- | docker/crupest-blog/Dockerfile | 11 | 
1 files changed, 2 insertions, 9 deletions
| diff --git a/docker/crupest-blog/Dockerfile b/docker/crupest-blog/Dockerfile index 66621bb..f9abc8b 100644 --- a/docker/crupest-blog/Dockerfile +++ b/docker/crupest-blog/Dockerfile @@ -1,16 +1,9 @@  FROM golang:alpine AS build-hugo -RUN apk add --no-cache build-base git -RUN CGO_ENABLED=1 go install --tags extended github.com/gohugoio/hugo@latest -RUN /go/bin/hugo version - -FROM alpine:latest -COPY --from=build-hugo /go/bin/hugo /usr/bin/ -# check hugo -RUN hugo version  ARG CRUPEST_BLOG_UPDATE_INTERVAL=1d +RUN apk add --no-cache build-base coreutils tini bash git +RUN CGO_ENABLED=1 go install --tags extended github.com/gohugoio/hugo@latest && hugo version  ENV CRUPEST_BLOG_UPDATE_INTERVAL=${CRUPEST_BLOG_UPDATE_INTERVAL}  COPY daemon.bash update.bash /scripts/ -RUN apk add --no-cache coreutils tini bash git  VOLUME [ "/public" ]  ENTRYPOINT ["/sbin/tini", "--"]  CMD [ "/scripts/daemon.bash" ] | 
