FROM hugomods/hugo:exts AS build
WORKDIR /app

COPY . /app/
# COPY .git /app/.git
RUN hugo

FROM hugomods/hugo:nginx
COPY --from=build /app/public /site