teoha commited on
Commit
f9c37ff
·
1 Parent(s): 62fbcf1

Remove extra requirements and add back pip install line in dockefile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11
2
 
3
  WORKDIR /code
4
  COPY ./requirements.txt /code/requirements.txt
5
-
6
  COPY . .
7
 
8
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /code
4
  COPY ./requirements.txt /code/requirements.txt
5
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
6
  COPY . .
7
 
8
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -1,3 +1,2 @@
1
  celery==5.1.2
2
  fastapi==0.103.2
3
- pydantic==1.10.12
 
1
  celery==5.1.2
2
  fastapi==0.103.2