Skip to content

Commit

Permalink
Install Docker packages with --no-cache-dir
Browse files Browse the repository at this point in the history
Pip has a "--no-cache-dir" argument to disable caching, eliminating the
need of deleting the cache with a hard-coded path.
  • Loading branch information
neolight1010 committed Oct 1, 2022
1 parent 0f62137 commit d0a1549
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ LABEL org.label-schema.vcs-ref=$VCS_REF \
COPY --from=build /wheels /wheels
COPY . /opt/sherlock/

RUN pip3 install -r requirements.txt -f /wheels \
&& rm -rf /wheels \
&& rm -rf /root/.cache/pip/*
RUN pip3 install --no-cache-dir -r requirements.txt -f /wheels \
&& rm -rf /wheels

WORKDIR /opt/sherlock/sherlock

Expand Down

0 comments on commit d0a1549

Please sign in to comment.