FROM ghcr.io/hugomods/hugo:0.128.2 AS build
WORKDIR /tmp/hugo
COPY . .
RUN hugo --gc --minify

FROM nginx:alpine-slim
WORKDIR  /usr/share/nginx/html
RUN ls
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /tmp/hugo/public .
EXPOSE 80/tcp
