Skip to content

Instantly share code, notes, and snippets.

@talkingtab
Created May 1, 2019 18:06
Show Gist options
  • Save talkingtab/5b669bef04008ad2e5ee427538071779 to your computer and use it in GitHub Desktop.
Save talkingtab/5b669bef04008ad2e5ee427538071779 to your computer and use it in GitHub Desktop.
docker file for hugo on arm64
# 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