Perform full Docker image update when building.

This commit is contained in:
Joe Testa 2023-09-03 18:07:30 -04:00
parent 77cdb969b9
commit 2867c65819

View File

@ -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