Files
miti99/Dockerfile
2025-02-16 23:03:57 +07:00

10 lines
220 B
Docker

FROM ghcr.io/gohugoio/hugo:v0.140.2 AS builder
WORKDIR /app
COPY . .
RUN hugo --gc --minify
FROM nginx:alpine AS runner
COPY --from=builder /app/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]