Add Docker for better DX from Znack's PR

This commit is contained in:
znack
2025-04-24 20:33:49 +02:00
committed by Steve Androulakis
parent 2f3afd6954
commit 87afa718d5
3 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
services:
api:
volumes:
- ./:/app:cached
command: uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload
worker:
volumes:
- ./:/app:cached
command: python scripts/run_worker.py
train-api:
volumes:
- ./:/app:cached
command: python thirdparty/train_api.py
frontend:
volumes:
- ./frontend:/app:cached
command: sh -c "apk update && apk add --no-cache xdg-utils && npm install && npx vite --host 0.0.0.0 --port 5173"