muhammadshaheryar commited on
Commit
aa3a702
·
verified ·
1 Parent(s): f0c57c7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,6 +1,8 @@
1
  FROM python:3.11-slim
2
 
3
- WORKDIR /
 
 
4
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
@@ -9,4 +11,4 @@ COPY . .
9
 
10
  EXPOSE 7860
11
 
12
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
 
3
+ WORKDIR /app
4
+
5
+ ENV PYTHONPATH=/app
6
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
 
11
 
12
  EXPOSE 7860
13
 
14
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]