This repository has been archived on 2021-08-14. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
bever-dam/Dockerfile

18 lines
298 B
Docker

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