From 206c91d3ad4f5fd4179a19b0481b2e35c53e6468 Mon Sep 17 00:00:00 2001 From: albe873 <93786475+albe873@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:07:37 +0100 Subject: [PATCH] Image size reduction --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 948f9aa..b5cba4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,14 @@ FROM rocm/dev-ubuntu-24.04 -RUN apt update && apt install -y libjpeg-dev python3-dev python3-pip +RUN apt update && apt install -y --no-install-recommends libjpeg-dev python3-dev python3-pip && \ + apt clean && \ + rm -r /var/lib/apt/lists/* -RUN pip3 install --break-system-packages wheel setuptools -RUN pip3 install --break-system-packages --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.2/ +RUN pip3 install --break-system-packages --no-cache-dir wheel setuptools +RUN pip3 install --break-system-packages --no-cache-dir --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.2/ -RUN pip3 install --break-system-packages wyoming openai-whisper tokenizers +RUN pip3 install --break-system-packages --no-cache-dir wyoming openai-whisper tokenizers COPY src /src