⬆️(setuptools) remove setuptools from production Docker image

To fix a CVE reported by Cyberwatch. These tools are not required at
runtime so there's no need to keep them around.
This commit is contained in:
Jonathan Perret
2025-11-24 17:29:44 +01:00
parent c0d252f390
commit c89b9b7ada
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
- remove setuptools, wheel and pip from production Docker image
## [1.0.10] - 2025-11-21
- rename helmfile.yaml for compatibility with helmfile 1.x
+2 -1
View File
@@ -68,7 +68,8 @@ COPY ./src/satosa /app/
WORKDIR /app
RUN pip install .
# Uninstall pip, setuptools and wheel after installation to reduce attack surface
RUN pip install . && pip uninstall -y setuptools wheel pip
# Switch to unprivileged user
USER ${DOCKER_USER}