Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cobanov authored Jun 29, 2023
1 parent 67d7a7c commit 5f392f9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5f392f9

Please sign in to comment.