# 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