From 9cd61aa9b3e9b6f3121261e383a84d2592ec04ec Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Thu, 7 Dec 2023 21:01:15 +0000 Subject: [PATCH] build: use cp/rm over mv for ci img build --- src/backend/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/Dockerfile b/src/backend/Dockerfile index 747db71dc7..cd23e34ab4 100644 --- a/src/backend/Dockerfile +++ b/src/backend/Dockerfile @@ -166,9 +166,11 @@ ARG PYTHON_IMG_TAG COPY --from=extract-deps \ /opt/python/requirements-ci.txt /opt/python/ # Copy packages from user to root dirs (run ci as root) -RUN mv /home/appuser/.local/bin/* /usr/local/bin/ \ - && mv /home/appuser/.local/lib/python${PYTHON_IMG_TAG}/site-packages/* \ +RUN cp -r /home/appuser/.local/bin/* /usr/local/bin/ \ + && cp -r /home/appuser/.local/lib/python${PYTHON_IMG_TAG}/site-packages/* \ /usr/local/lib/python${PYTHON_IMG_TAG}/site-packages/ \ + && rm -rf /home/appuser/.local/bin \ + && rm -rf /home/appuser/.local/lib/python${PYTHON_IMG_TAG}/site-packages \ && set -ex \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install \