forked from decred/dcrweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 810 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (23 loc) · 810 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
# builder image
FROM alpine:edge
ARG HUGO_BASEURL
ENV HUGO_BASEURL ${HUGO_BASEURL:-https://decred.org}
ENV HUGO_VERSION 0.58.3
LABEL description="gohugo build"
LABEL version="1.0"
LABEL maintainer="peter@froggle.org"
WORKDIR /tmp
RUN apk update && apk upgrade
RUN apk add --no-cache bash jq wget libc6-compat g++
RUN wget -q https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_extended_"$HUGO_VERSION"_Linux-64bit.tar.gz
RUN tar xz -C /usr/local/bin -f hugo_extended_"$HUGO_VERSION"_Linux-64bit.tar.gz
WORKDIR /root
COPY ./ /root/
RUN bin/build-hugo.sh
# final image
FROM nginx:1.16
LABEL description="dcrweb server"
LABEL version="1.0"
LABEL maintainer="peter@froggle.org"
COPY conf/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=0 /root/src/public/ /usr/share/nginx/html