mirror of
https://github.com/jtesta/ssh-audit.git
synced 2025-06-22 18:53:40 +02:00
Perform full Docker image update when building.
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user