Skip to content

Commit c78f3cb

Browse files
authored
Improve image size
1 parent 6af567f commit c78f3cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ WORKDIR /netbox-scanner/netbox-scanner-master
2222
RUN pip3 install -r requirements.txt
2323

2424
# Cleanup
25-
RUN apt-get -y purge $PACKAGES_CLEAN \
26-
&& apt -y autoremove \
27-
&& rm -rf /var/lib/apt/lists/*
25+
RUN find /usr/ -name '*.pyc' -delete
2826

2927
# Build final image
3028
FROM scratch

0 commit comments

Comments
 (0)