Skip to content

Commit 035d1c7

Browse files
Prevent pip cache in Dockerfile to make Docker image smaller
1 parent c5290d9 commit 035d1c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apk upgrade --no-cache
44
RUN apk add --no-cache rust cargo openssl-dev libffi-dev py3-pip python3 samba-client samba-common-tools yaml-dev
55
RUN apk add --no-cache --virtual build-dependencies build-base git \
66
&& git clone https://github.com/cddmp/enum4linux-ng.git \
7-
&& pip install -r enum4linux-ng/requirements.txt \
7+
&& pip install --no-cache-dir -r enum4linux-ng/requirements.txt \
88
&& apk del build-dependencies
99
WORKDIR enum4linux-ng
1010
ENTRYPOINT ["python", "enum4linux-ng.py"]

0 commit comments

Comments
 (0)