Skip to content

Commit

Permalink
Fix hugo download in dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
cguertin14 authored Jun 6, 2022
1 parent 7785090 commit 2bcec6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apk add --update --no-cache git && \
apk upgrade

ENV HUGO_VERSION=v0.86.0
RUN go get -u github.com/gohugoio/hugo@${HUGO_VERSION}
RUN go install github.com/gohugoio/hugo@${HUGO_VERSION}

COPY src/ /src
WORKDIR /src
Expand All @@ -17,4 +17,4 @@ RUN hugo
# Step 2 - runtime
FROM nginx:1.21.6-alpine AS runtime
COPY --from=build /src/public/ /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 2bcec6c

Please sign in to comment.