FROM alpine as builder
COPY . /opt/
WORKDIR /opt
RUN apk add --no-cache git hugo make && make build
FROM nginx
COPY --from=builder /opt/public /usr/share/nginx/html
EXPOSE 80