Add Docker infrastructure with caddy-docker-proxy
Multi-stage Dockerfile (node build → caddy:2-alpine production, node dev). Compose base + dev override for prod/dev switching via .env ENVIRONMENT flag. Makefile targets: build, up, down, restart, logs, dev, prod, clean, rebuild. Caddyfile serves static Astro output with caching and compression.
This commit is contained in:
parent
364b6602c4
commit
162d485c31
6 changed files with 160 additions and 0 deletions
10
.dockerignore
Normal file
10
.dockerignore
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
node_modules
|
||||
dist
|
||||
.git
|
||||
.gitignore
|
||||
.env
|
||||
*.md
|
||||
!README.md
|
||||
Makefile
|
||||
docker-compose*.yml
|
||||
.astro
|
||||
Loading…
Add table
Add a link
Reference in a new issue