-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
26 lines (18 loc) · 1 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
FROM europe-docker.pkg.dev/gardener-project/releases/3rd/alpine:3.20.1 as base
RUN apk add curl
ENV HUGO_VERSION=0.137.1
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 europe-docker.pkg.dev/gardener-project/releases/docforge:v0.46.0 as docforge
FROM europe-docker.pkg.dev/gardener-project/releases/cicd/job-image:latest
COPY --from=docforge /docforge /usr/local/bin/docforge
COPY --from=base /usr/local/bin/hugo /usr/local/bin/hugo
RUN apk add --update bash asciidoctor libc6-compat libstdc++ gcompat nodejs npm
VOLUME /src
VOLUME /output
EXPOSE 1313