FROM alpine AS build RUN apk add hugo git WORKDIR /src COPY . . RUN git submodule init RUN git submodule update RUN hugo FROM nginx:alpine COPY nginx.conf /etc/nginx/nginx.conf COPY --from=build /src/public /usr/share/nginx/html EXPOSE 80