Files
rezepte/Dockerfile
Elias Kohout b2d3f38bee
Some checks are pending
Build and Push Docker Container / build-and-push (push) Waiting to run
.
2025-03-14 20:05:22 +01:00

14 lines
315 B
Docker

# Compile the hugo site
FROM klakegg/hugo:ext-alpine 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"]