Skip to content

Commit f99e3ac

Browse files
authored
Merge pull request #22 from PeterDaveHello/ImproveDockerfile
Make Docker image more compact(smaller)
2 parents 02a84dc + 8f988fb commit f99e3ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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 \
6-
&& git clone https://github.com/cddmp/enum4linux-ng.git \
7-
&& pip install -r enum4linux-ng/requirements.txt \
5+
RUN apk add --no-cache --virtual build-dependencies build-base git \
6+
&& git clone --depth 1 https://github.com/cddmp/enum4linux-ng.git \
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)