mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-22 22:15:22 +01:00
Perform full Docker image update when building.
This commit is contained in:
parent
77cdb969b9
commit
2867c65819
@ -2,6 +2,9 @@ FROM python:3-slim
|
|||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
# Update the image to remediate any vulnerabilities.
|
||||||
|
RUN apt clean && apt update && apt -y dist-upgrade && apt clean
|
||||||
|
|
||||||
# Remove suid & sgid bits from all files.
|
# Remove suid & sgid bits from all files.
|
||||||
RUN find / -xdev -perm /6000 -exec chmod ug-s {} \; 2> /dev/null || true
|
RUN find / -xdev -perm /6000 -exec chmod ug-s {} \; 2> /dev/null || true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user