You've already forked hugo-docker
mirror of
https://github.com/jakejarvis/hugo-docker.git
synced 2026-01-13 12:02:55 -05:00
Hugo v0.78.2
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -3,7 +3,7 @@
|
|||||||
FROM golang:1.15-alpine
|
FROM golang:1.15-alpine
|
||||||
|
|
||||||
# the following version can be overridden at image build time with --build-arg
|
# the following version can be overridden at image build time with --build-arg
|
||||||
ARG HUGO_VERSION=0.78.1
|
ARG HUGO_VERSION=0.78.2
|
||||||
# remove/comment the following line completely to build with vanilla Hugo:
|
# remove/comment the following line completely to build with vanilla Hugo:
|
||||||
ARG HUGO_EXTENDED=1
|
ARG HUGO_EXTENDED=1
|
||||||
|
|
||||||
@@ -28,8 +28,10 @@ RUN apk update && \
|
|||||||
py3-pip \
|
py3-pip \
|
||||||
ruby \
|
ruby \
|
||||||
${HUGO_EXTENDED:+libc6-compat libstdc++} && \
|
${HUGO_EXTENDED:+libc6-compat libstdc++} && \
|
||||||
update-ca-certificates && \
|
update-ca-certificates
|
||||||
npm install --global postcss postcss-cli autoprefixer @babel/core @babel/cli && \
|
|
||||||
|
# download Hugo and miscellaneous optional dependencies
|
||||||
|
RUN npm install --global postcss postcss-cli autoprefixer @babel/core @babel/cli && \
|
||||||
pip3 install --upgrade Pygments==2.* && \
|
pip3 install --upgrade Pygments==2.* && \
|
||||||
gem install asciidoctor && \
|
gem install asciidoctor && \
|
||||||
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz && \
|
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz && \
|
||||||
@@ -40,6 +42,11 @@ RUN apk update && \
|
|||||||
chmod +x /usr/local/bin/hugo && \
|
chmod +x /usr/local/bin/hugo && \
|
||||||
rm -rf hugo_* LICENSE README.md
|
rm -rf hugo_* LICENSE README.md
|
||||||
|
|
||||||
|
# fix potential stack size problems on Alpine
|
||||||
|
# https://github.com/microsoft/vscode-dev-containers/blob/fb63f7e016877e13535d4116b458d8f28012e87f/containers/hugo/.devcontainer/Dockerfile#L19
|
||||||
|
RUN go get github.com/yaegashi/muslstack && \
|
||||||
|
muslstack -s 0x800000 /usr/local/bin/hugo
|
||||||
|
|
||||||
# verify everything's OK, exit otherwise
|
# verify everything's OK, exit otherwise
|
||||||
RUN hugo version && \
|
RUN hugo version && \
|
||||||
hugo env && \
|
hugo env && \
|
||||||
|
|||||||
Reference in New Issue
Block a user