Elliot89 commited on
Commit
b89411e
·
verified ·
1 Parent(s): 3dc9d8d

Update Dockerfile

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