fix: serve static site from public folder in docker

This commit is contained in:
Luca Sacchi Ricciardi
2026-04-23 18:20:55 +02:00
parent 14941aa6c8
commit b8fd07463d
5 changed files with 281 additions and 3 deletions
+2
View File
@@ -7,6 +7,7 @@ Landing page statica per i servizi pubblici HomeLab del dominio `*.home.lucasacc
- `index.html`: pagina principale moderna con Tailwind CSS compilato localmente, ricerca live e card servizi.
- `tailwind.input.css`: file sorgente Tailwind.
- `tailwind.css`: CSS compilato usato in produzione.
- `public/`: root statica servita dal container (`index.html`, `tailwind.css`, `favicon.svg`).
- `docker-compose.yml`: avvio rapido con web server `nginx:alpine`.
## Avvio rapido
@@ -30,6 +31,7 @@ Build CSS (quando cambi classi Tailwind in `index.html`):
```bash
npm install
npm run build
cp index.html tailwind.css favicon.svg public/
```
Comandi: