Remove pip cache
This commit is contained in:
parent
74986fab7b
commit
bb5b0b99bd
1 changed files with 4 additions and 2 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
FROM docker.io/library/python:3.11-alpine
|
FROM docker.io/library/python:3.11-alpine
|
||||||
|
|
||||||
RUN apk --no-cache add sshpass openssh-client lftp; mkdir -p /opt/app
|
RUN apk --no-cache add sshpass openssh-client lftp; mkdir -p /opt/app
|
||||||
ADD requirements.txt /opt/app/
|
WORKDIR /opt/app
|
||||||
|
ADD requirements.txt /root/
|
||||||
|
ADD Dockerfile /root/
|
||||||
|
|
||||||
# ignore "Running pip as root" warning
|
# ignore "Running pip as root" warning
|
||||||
ENV PIP_ROOT_USER_ACTION=ignore
|
ENV PIP_ROOT_USER_ACTION=ignore
|
||||||
|
|
||||||
RUN pip install -r /opt/app/requirements.txt && pip freeze
|
RUN pip install -r /root/requirements.txt && pip freeze && rm -Rf "$(pip cache dir)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue