Maxenoz commited on
Commit
237a4ea
·
verified ·
1 Parent(s): 8f47a33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile CHANGED
@@ -14,3 +14,16 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  COPY --chown=user . /app
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  COPY --chown=user . /app
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
17
+ FROM python:3.11-slim
18
+
19
+ WORKDIR /app
20
+
21
+ COPY . .
22
+
23
+ RUN pip install --no-cache-dir -r requirements.txt
24
+
25
+ EXPOSE 7860
26
+
27
+ # Run your main server/app script
28
+ CMD ["python", "server.py"]
29
+