bestdadjokes/Dockerfile
djg a3193fb40d
Some checks failed
Build and Deploy / deploy (push) Failing after 30s
ci: switch to Docker image build and kubectl rollout
2026-09-21 22:25:39 +00:00

11 lines
294 B
Docker

# Build: run build.py to generate the static site
FROM python:3.11-slim AS builder
WORKDIR /app
COPY . .
RUN python3 build.py
# Serve: bake the built site into nginx:alpine
FROM nginx:alpine
COPY --from=builder /app/site/ /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80