-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (35 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG ALPINE=3.12
FROM alpine:${ALPINE} AS fetcher
RUN apk add --no-cache \
ca-certificates \
coreutils \
wget
ARG DOCKER_TAG=0.82.0
RUN wget https://github.com/gohugoio/hugo/releases/download/v${DOCKER_TAG}/hugo_extended_${DOCKER_TAG}_Linux-64bit.tar.gz \
&& wget https://github.com/gohugoio/hugo/releases/download/v${DOCKER_TAG}/hugo_${DOCKER_TAG}_checksums.txt \
&& sha256sum --ignore-missing -c hugo_${DOCKER_TAG}_checksums.txt \
&& tar -zxvf hugo_extended_${DOCKER_TAG}_Linux-64bit.tar.gz
FROM alpine:${ALPINE}
RUN apk add --no-cache \
graphviz \
libc6-compat \
libstdc++ \
nodejs \
openjdk8-jre \
py3-pygments \
py3-docutils \
ruby \
ruby-json \
yarn \
&& yarn global add \
autoprefixer \
postcss \
postcss-cli \
&& gem install \
asciidoctor \
asciidoctor-diagram \
asciidoctor-html5s \
pygments.rb
COPY --from=fetcher /hugo /usr/bin/hugo
COPY bin/ /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/hugo"]