Skip to content

Commit c5290d9

Browse files
Add --no-cache for apk in Dockerfile
This will prevent apk leaving cache in Docker image
1 parent 02a84dc commit c5290d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM python:3.8-alpine
22

3-
RUN apk upgrade
3+
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
5-
RUN apk add --virtual build-dependencies build-base git \
5+
RUN apk add --no-cache --virtual build-dependencies build-base git \
66
&& git clone https://github.com/cddmp/enum4linux-ng.git \
77
&& pip install -r enum4linux-ng/requirements.txt \
88
&& apk del build-dependencies

0 commit comments

Comments
 (0)