This repository has been archived on 2021-08-14. You can view files and clone it, but cannot push or open issues/pull-requests.
bever-dam/Dockerfile

19 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