Fred808 commited on
Commit
91ff471
·
verified ·
1 Parent(s): f43870b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,12 +1,10 @@
1
- FROM python:3.10-slim
2
 
3
- WORKDIR /app
4
 
5
- COPY . /app
6
 
7
- RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- VOLUME /app/results
10
 
11
  RUN chmod -R 777 /app
12
 
@@ -15,4 +13,8 @@ RUN useradd -m -u 1000 user
15
  USER user
16
 
17
 
18
- CMD ["python", "app.py"]
 
 
 
 
 
 
1
 
 
2
 
3
+ FROM python:3.11-slim
4
 
5
+ WORKDIR /app
6
 
7
+ COPY . .
8
 
9
  RUN chmod -R 777 /app
10
 
 
13
  USER user
14
 
15
 
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ EXPOSE 7860
19
+
20
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]