Cistern commited on
Commit
bdf19e2
·
verified ·
1 Parent(s): c9f0132

Update Dockerfile

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