ltqf/Dockerfile
Florian du Garage Num 26b8e90376 Dockerfile deploy
2023-12-16 14:04:40 +01:00

11 lines
325 B
Docker

# Use an image that includes both Hugo and Nginx
FROM hugomods/hugo:0.111.3 AS builder
COPY . /src
WORKDIR /src
RUN hugo --minify --gc
FROM hugomods/hugo:nginx
#COPY --from=builder /src/public /usr/share/nginx/html
COPY --from=builder /src/public /site
# Default Nginx config should be sufficient for serving static content