sathish2352 commited on
Commit
32fcd45
·
verified ·
1 Parent(s): dda0a10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,11 +1,7 @@
1
- # Dockerfile
2
- FROM python:3.9
3
-
4
- WORKDIR /code
5
-
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
-
9
- COPY app.py .
10
-
11
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
2
+ WORKDIR /app
 
 
 
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
5
+ COPY app/ app/
6
+ EXPOSE 8000
7
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]