modify build dir of copilot_proxy

This commit is contained in:
luanshaotong 2022-10-11 15:13:29 +00:00
commit 17ba576021
2 changed files with 4 additions and 4 deletions

View file

@ -2,11 +2,11 @@ FROM python:3.10-slim-buster
WORKDIR /python-docker WORKDIR /python-docker
COPY copilot_proxy/requirements.txt requirements.txt COPY requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt RUN pip3 install --no-cache-dir -r requirements.txt
COPY copilot_proxy . COPY . .
EXPOSE 5000 EXPOSE 5000

View file

@ -23,8 +23,8 @@ services:
# command: python3 -m flask run --host=0.0.0.0 --port=5000 # command: python3 -m flask run --host=0.0.0.0 --port=5000
# For local build # For local build
build: build:
context: . context: ./copilot_proxy
dockerfile: copilot_proxy/Dockerfile dockerfile: Dockerfile
command: uvicorn app:app --host 0.0.0.0 --port 5000 command: uvicorn app:app --host 0.0.0.0 --port 5000
env_file: env_file:
# You can modify this env file to configure your proxy environment # You can modify this env file to configure your proxy environment