tmmdev commited on
Commit
9c114b2
·
verified ·
1 Parent(s): f017b20

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -2,6 +2,9 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /code
4
 
 
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
@@ -10,4 +13,6 @@ COPY . /code
10
 
11
  EXPOSE 7865
12
 
13
- CMD ["python", "run.py"]
 
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install git
6
+ RUN apt-get update && apt-get install -y git
7
+
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
13
 
14
  EXPOSE 7865
15
 
16
+ ENV PYTHONPATH=/code
17
+
18
+ CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7865"]