🔒️(backend) uninstall pip in the production image

Reduce surface area and keep the runtime image minimal.
This commit is contained in:
lebaudantoine
2026-02-20 11:57:47 +01:00
parent 44928e0ccb
commit f3e899fa67
+3
View File
@@ -127,6 +127,9 @@ ARG MEET_STATIC_ROOT=/data/static
RUN mkdir -p /usr/local/etc/gunicorn
COPY docker/files/usr/local/etc/gunicorn/meet.py /usr/local/etc/gunicorn/meet.py
# Remove pip to reduce attack surface in production
RUN pip uninstall -y pip
# Un-privileged user running the application
ARG DOCKER_USER
USER ${DOCKER_USER}