🔒️(agents) uninstall pip from the agents image
Reduce surface area and keep the runtime image minimal.
This commit is contained in:
committed by
aleb_the_flash
parent
4507325331
commit
ec3d4f7462
@@ -19,6 +19,9 @@ FROM base AS production
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Remove pip to reduce attack surface in production
|
||||||
|
RUN pip uninstall -y pip
|
||||||
|
|
||||||
ARG DOCKER_USER
|
ARG DOCKER_USER
|
||||||
USER ${DOCKER_USER}
|
USER ${DOCKER_USER}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user