2 Commits

Author SHA1 Message Date
Peter Dave Hello cf05bf2003 Merge e1b29f94e4 into d62e4cd80c 2023-10-23 16:43:04 +00:00
Peter Dave Hello e1b29f94e4 Properly upgrade packages and clean up apt cache in Dockerfile
Result:
```
REPOSITORY     TAG       IMAGE ID       CREATED              SIZE
ssh-audit      after     03e247aee0cc   About a minute ago   131MB
ssh-audit      before    609962ceafb1   About a minute ago   150MB
```
2023-10-24 00:39:40 +08:00
+1 -1
View File
@@ -3,7 +3,7 @@ FROM python:3-slim
WORKDIR /
# Update the image to remediate any vulnerabilities.
RUN apt clean && apt update && apt -y dist-upgrade && apt clean
RUN apt update && apt -y upgrade && apt -y dist-upgrade && rm -rf /var/lib/apt/lists/*
# Remove suid & sgid bits from all files.
RUN find / -xdev -perm /6000 -exec chmod ug-s {} \; 2> /dev/null || true