Added Docker image config

This commit is contained in:
Jef Roosens 2021-07-08 22:38:03 +02:00
parent 8d07fe732c
commit b1d1716fbd
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
3 changed files with 59 additions and 0 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM alpine:latest AS builder
WORKDIR /usr/src/app
# Install Hugo
RUN apk add --no-cache hugo
# Copy site files for building
COPY . ./
# Generate the site
RUN hugo --minify
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /usr/src/app/public /usr/share/nginx/html