forked from gardener/website-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 892 Bytes
/
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
FROM alpine:3.11 as base
RUN apk add curl
ENV HUGO_VERSION=0.67.0
ENV HUGO_TYPE=_extended
ENV HUGO_ID=hugo${HUGO_TYPE}_${HUGO_VERSION}
RUN curl -fsSLO --compressed https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_ID}_Linux-64bit.tar.gz \
&& curl -fsSL --compressed https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt | grep " ${HUGO_ID}_Linux-64bit.tar.gz\$" | sha256sum -c - \
&& tar -xzf ${HUGO_ID}_Linux-64bit.tar.gz \
&& mkdir -p /usr/local/bin \
&& mv ./hugo /usr/local/bin/hugo
FROM eu.gcr.io/gardener-project/cc/job-image:1.564.0
COPY --from=base /usr/local/bin/hugo /usr/local/bin/hugo
RUN apk add --update bash asciidoctor libc6-compat libstdc++ nodejs npm \
&& addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/bash -D node
VOLUME /src
VOLUME /output
EXPOSE 1313