rohith083 commited on
Commit
8e7683c
·
verified ·
1 Parent(s): 28aca74

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,9 +1,14 @@
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 app.py .
9
 
 
1
+ FROM python:3.10-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1 \
5
+ PIP_NO_CACHE_DIR=1 \
6
+ PORT=7860
7
 
8
  WORKDIR /app
9
 
10
  COPY requirements.txt .
11
+ RUN pip install --upgrade pip && pip install -r requirements.txt
12
 
13
  COPY app.py .
14