COPY --chown=policy:policy acm-runtime.sh bin/
COPY --chown=policy:policy /maven/policy-clamp-runtime-acm.jar /app/app.jar
-RUN if python -c "import setuptools" 2>/dev/null; then \
- pip uninstall -y setuptools; \
- else \
- echo "setuptools not installed, skipping uninstall."; \
- fi
+RUN pip uninstall -y setuptools || true
-RUN if python3 -c "import pip" 2>/dev/null; then \
- python3 -m pip uninstall -y pip; \
- echo "pip uninstalled."; \
- else \
- echo "pip not installed, skipping uninstall."; \
- fi && \
+RUN python3 -m pip uninstall -y pip || true && \
rm -rf /usr/bin/pip* /usr/local/bin/pip*
RUN chmod 755 bin/*.sh