Rewrite API to FastAPI, separate API from CodeGen, remove dev settings

This commit is contained in:
Fred de Gier 2022-09-12 12:59:37 +02:00
commit 8895b74238
9 changed files with 942 additions and 262 deletions

View file

@ -19,6 +19,12 @@ services:
capabilities: [gpu]
copilot_proxy:
image: moyix/copilot_proxy:latest
command: python3 -m flask run --host=0.0.0.0 --port=5000
# For local build
# build:
# context: .
# dockerfile: copilot_proxy/Dockerfile
command: uvicorn app:app --host $API_HOST --port $API_PORT
env_file:
- .env
ports:
- "5000:5000"
- "5001:${API_PORT}"