-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 871 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 871 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
# Build image
FROM alpine:latest
ARG HUGO_BASEURL
ENV HUGO_BASEURL ${HUGO_BASEURL:-https://bounty.decred.org/}
ENV HUGO_VERSION 0.134.0
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 wget gcompat libstdc++ libc6-compat g++
RUN wget -q https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_extended_"$HUGO_VERSION"_linux-amd64.tar.gz
RUN tar xz -C /usr/local/bin -f hugo_extended_"$HUGO_VERSION"_linux-amd64.tar.gz
WORKDIR /root
COPY ./ /root/
RUN bin/build-hugo.sh
# Serve image (stable nginx version)
FROM nginx:1.28-alpine
LABEL description="dcrbounty server"
LABEL version="1.0"
LABEL maintainer="jholdstock@decred.org"
COPY conf/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=0 /root/src/public/ /usr/share/nginx/html