Alstears commited on
Commit
67b0de8
·
verified ·
1 Parent(s): 99de8b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.11-slim
2
 
3
  ENV PYTHONDONTWRITEBYTECODE=1 \
4
  PYTHONUNBUFFERED=1 \
@@ -17,13 +17,11 @@ WORKDIR /app
17
  COPY requirements.txt .
18
 
19
  RUN pip install --upgrade pip setuptools wheel && \
20
- pip install --no-cache-dir \
21
- torch==2.3.1 torchaudio==2.3.1 \
22
- --index-url https://download.pytorch.org/whl/cpu && \
23
  pip install --no-cache-dir -r requirements.txt
24
 
25
  COPY . .
26
 
27
  EXPOSE 7860
28
-
29
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
 
3
  ENV PYTHONDONTWRITEBYTECODE=1 \
4
  PYTHONUNBUFFERED=1 \
 
17
  COPY requirements.txt .
18
 
19
  RUN pip install --upgrade pip setuptools wheel && \
20
+ pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu \
21
+ torch torchaudio && \
 
22
  pip install --no-cache-dir -r requirements.txt
23
 
24
  COPY . .
25
 
26
  EXPOSE 7860
 
27
  CMD ["python", "app.py"]