- Add Dockerfile with multi-stage build (node -> caddy) - Add docker-compose.yml for caddy-docker-proxy - Update astro.config.mjs with production site URL - Add Documentation link to README.md header - Add Documentation URL to pyproject.toml
13 lines
254 B
Docker
13 lines
254 B
Docker
# Build stage
|
|
FROM node:22-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Serve stage
|
|
FROM caddy:2-alpine
|
|
COPY --from=builder /app/dist /srv
|
|
CMD ["caddy", "file-server", "--root", "/srv", "--listen", ":80"]
|