Multi-stage Dockerfile: node:22-slim build → caddy:2-alpine serve. caddy-docker-proxy labels for automatic TLS + reverse proxy. Profiles: prod (Caddy static) and dev (Astro HMR with volume mounts).
8 lines
133 B
Caddyfile
8 lines
133 B
Caddyfile
:80 {
|
|
root * /srv
|
|
file_server
|
|
encode gzip zstd
|
|
header Cache-Control "public, max-age=3600"
|
|
try_files {path} {path}/ /404.html
|
|
}
|