# Hugo FROM hugomods/hugo:base AS build WORKDIR /src COPY . . RUN hugo # Nginx (serve) FROM nginx:alpine COPY --from=build /src/public /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf HEALTHCHECK --interval=5m --timeout=5s \ CMD curl -f http://localhost/ || exit 1