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.
pull/130/head
Mert Cobanov 2 years ago committed by GitHub
parent 67d7a7ca81
commit 5f392f92ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save