Добавил докер образ

This commit is contained in:
Ilia Miheev
2026-08-01 22:48:29 +03:00
parent 7a54ac0c18
commit 3650ffa3cd
7 changed files with 140 additions and 4 deletions
+25
View File
@@ -33,6 +33,31 @@ npm run lint
Copy `.env.example` to `.env` and set branding / theme variables.
`npm run serve` / `npm run build` regenerates `public/config.js` automatically.
### Docker
Build and run (config via environment, same keys as `.env.example`):
```
docker compose up --build
```
Open http://localhost:8080
Change branding without rebuilding the image — only restart with new env:
```
docker compose up -d
```
Or:
```
docker build -t irandom .
docker run --rm -p 8080:80 ^
-e VUE_APP_NAME=LuckyPenguin ^
-e VUE_APP_COLOR_PRIMARY=#3DDC97 ^
irandom
```
### Offline (PWA)
Production build registers a service worker and caches the app shell.
After opening the site once online: