Files
miti99/Dockerfile
T
2024-11-30 19:03:47 +07:00

10 lines
220 B
Docker

FROM ghcr.io/gohugoio/hugo:v0.135.0 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;"]