Files
rezepte/Dockerfile
2025-03-26 12:29:25 +01:00

14 lines
312 B
Docker

# Compile the hugo site
FROM hugomods/hugo:std-ci AS builder
WORKDIR /app
COPY ./hugo .
RUN hugo --minify --destination ./public
# Setup deployment
FROM alpine:latest
WORKDIR /www
COPY --from=builder /app/public /www
RUN apk add --no-cache busybox-extras
EXPOSE 80
CMD ["httpd", "-f", "-p", "80", "-h", "/www"]