forked from kubernetes/contributor-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 713 Bytes
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
FROM alpine:latest
# Specify HUGO_VERSION, or work it out automatically by using
# "make container-image"
ARG HUGO_VERSION
RUN apk add --no-cache \
bash \
build-base \
curl \
git \
grep \
gcompat \
libc6-compat \
rsync \
sed \
npm
WORKDIR /src
# Required for PostCSS
RUN npm install -G \
autoprefixer \
postcss-cli
RUN mkdir -p /usr/local/src && \
cd /usr/local/src && \
curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | tar -xz && \
mv hugo /usr/local/bin/hugo && \
addgroup -Sg 1000 hugo && \
adduser -Sg hugo -u 1000 -h /src hugo
USER hugo:hugo
EXPOSE 1313