Created
May 1, 2019 18:06
-
-
Save talkingtab/5b669bef04008ad2e5ee427538071779 to your computer and use it in GitHub Desktop.
docker file for hugo on arm64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from several other Dockerfiles | |
# especially https://github.com/jguyomard/docker-hugo | |
FROM arm64v8/golang:1.12.4-alpine3.9 | |
RUN apk add --no-cache \ | |
gcc \ | |
g++ \ | |
libc-dev \ | |
curl \ | |
git \ | |
openssh-client \ | |
rsync | |
RUN mkdir -p /usr/local/src \ | |
&& cd /usr/local/src \ | |
&& git clone https://github.com/gohugoio/hugo.git \ | |
&& cd hugo \ | |
&& go install --tags extended \ | |
&& curl -L https://bin.equinox.io/c/dhgbqpS8Bvy/minify-stable-linux-amd64.tgz | tar -xz \ | |
&& mv minify /usr/local/bin/ \ | |
&& addgroup -Sg 1000 hugo \ | |
&& adduser -SG hugo -u 1000 -h /src hugo | |
WORKDIR /src | |
EXPOSE 1313 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment