From 5f392f92ff7d11a8666f02b55ab51e432203477d Mon Sep 17 00:00:00 2001 From: Mert Cobanov Date: Thu, 29 Jun 2023 12:43:52 +0300 Subject: [PATCH] Update Dockerfile Used --no-cache-dir flag when installing Python packages to avoid caching unnecessary files. Removed the intermediate requirements.txt file after installing the Python packages. --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b40f196..2c6ad40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libxinerama-dev \ libxcursor-dev \ libxi-dev \ - libxxf86vm-dev + libxxf86vm-dev \ + && rm -rf /var/lib/apt/lists/* -RUN pip install --upgrade pip +RUN pip install --no-cache-dir --upgrade pip -COPY requirements.txt requirements.txt -RUN pip install -r requirements.txt +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt WORKDIR /workspace