mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-21 05:44:09 -07:00
Rewrite API to FastAPI, separate API from CodeGen, remove dev settings
This commit is contained in:
parent
6b69437b7e
commit
8895b74238
9 changed files with 942 additions and 262 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue