FROM alpine as builder

COPY . /opt/

WORKDIR /opt

RUN apk add --no-cache git hugo && \
	hugo --verbose --minify --enableGitInfo

FROM nginx
COPY --from=builder /opt/public /usr/share/nginx/html

EXPOSE 80
