Skip to content

Commit

Permalink
Update alpine base image in Dockerfile to 3.11
Browse files Browse the repository at this point in the history
When building the extended version of Hugo using the Dockerfile and
`--build-arg HUGO_BUILD_TAGS=extended`, the obtained Docker container is
broken, because the source is build under alpine 3.11 and the compiled
binary is copied to an image based on alpine 3.10. This problem was most
likely introduced due to an update of the golang base image.

This commit changes the base image from alpine:3.10 to alpine:3.11,
fixing extended version builds.
  • Loading branch information
RemcodM authored and bep committed Dec 30, 2019
1 parent 5509954 commit aa4ccb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN mage hugo && mage install

# ---

FROM alpine:3.10
FROM alpine:3.11

COPY --from=build /go/bin/hugo /usr/bin/hugo

Expand Down

0 comments on commit aa4ccb8

Please sign in to comment.