banao-tech commited on
Commit
5f4ecf6
·
verified ·
1 Parent(s): cbb31c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM nvidia/cuda:12.6.3-cudnn9-runtime-ubuntu22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
@@ -10,11 +10,23 @@ ENV HF_HOME=/tmp/.huggingface
10
 
11
  WORKDIR /app
12
 
13
- RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip python3-dev python3-venv ffmpeg git && ln -sf /usr/bin/python3 /usr/bin/python && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
14
 
15
  COPY requirements.txt /app/requirements.txt
16
 
17
- RUN python -m pip install --upgrade pip==24.3.1 setuptools==75.8.0 wheel==0.45.1 && pip install --no-cache-dir torch==2.8.0 torchaudio==2.8.0 torchvision==0.23.0 --index-url https://download.pytorch.org/whl/cu126 && pip install --no-cache-dir -r /app/requirements.txt
 
 
 
 
18
 
19
  COPY app.py /app/app.py
20
  COPY README.md /app/README.md
 
1
+ FROM nvidia/cuda:12.6.1-cudnn-runtime-ubuntu22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
 
10
 
11
  WORKDIR /app
12
 
13
+ RUN apt-get update && apt-get install -y --no-install-recommends \
14
+ python3 \
15
+ python3-pip \
16
+ python3-dev \
17
+ python3-venv \
18
+ ffmpeg \
19
+ git \
20
+ && ln -sf /usr/bin/python3 /usr/bin/python \
21
+ && rm -rf /var/lib/apt/lists/*
22
 
23
  COPY requirements.txt /app/requirements.txt
24
 
25
+ RUN python -m pip install --upgrade pip==24.3.1 setuptools==75.8.0 wheel==0.45.1 && \
26
+ pip install --no-cache-dir \
27
+ torch==2.8.0 torchaudio==2.8.0 torchvision==0.23.0 \
28
+ --index-url https://download.pytorch.org/whl/cu126 && \
29
+ pip install --no-cache-dir -r /app/requirements.txt
30
 
31
  COPY app.py /app/app.py
32
  COPY README.md /app/README.md