1- FROM nvidia/cuda:12.4 .1-runtime-ubuntu22 .04 as gpu
1+ FROM nvidia/cuda:12.8 .1-cudnn- runtime-ubuntu24 .04 as gpu
22
33WORKDIR /app
44
55RUN apt-get update -y && \
6- apt-get install -y python3 python3-pip libcudnn8 libcudnn8-dev libcublas-12-4 portaudio19-dev
6+ apt-get install -y python3 python3-pip portaudio19-dev
77
8- RUN pip3 install torch==2.3.0 torchaudio==2.3.0
8+ RUN pip3 install torch==2.7.1+cu128 torchaudio==2.7.1+cu128 --index-url https://download.pytorch.org/whl/cu128
99
10- COPY requirements-gpu.txt /app/requirements-gpu.txt
11- RUN pip3 install -r /app/requirements-gpu.txt
10+ COPY requirements-gpu* /app/
11+ RUN pip3 install -r /app/requirements-gpu-torch.txt && \
12+ pip3 install -r /app/requirements-gpu.txt
1213
1314RUN mkdir example_browserclient
1415COPY example_browserclient/server.py /app/example_browserclient/server.py
@@ -21,14 +22,14 @@ CMD ["python3", "example_browserclient/server.py"]
2122
2223# --------------------------------------------
2324
24- FROM ubuntu:22 .04 as cpu
25+ FROM ubuntu:24 .04 as cpu
2526
2627WORKDIR /app
2728
2829RUN apt-get update -y && \
2930 apt-get install -y python3 python3-pip portaudio19-dev
3031
31- RUN pip3 install torch==2.3.0 torchaudio==2.3.0
32+ RUN pip3 install torch==2.7.1 torchaudio==2.7.1
3233
3334COPY requirements.txt /app/requirements.txt
3435RUN pip3 install -r /app/requirements.txt
0 commit comments