lvl0-website/.docker/Dockerfile

17 lines
301 B
Text
Raw Permalink Normal View History

2025-08-01 23:48:36 +02:00
# Build stage
FROM alpine:latest as builder
# Install Zola
RUN apk add --no-cache zola
WORKDIR /app
COPY . .
RUN zola build
# Runtime stage
FROM docker.io/library/nginx:alpine
COPY --from=builder /app/public /usr/share/nginx/html
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80