Skip to content

Commit

Permalink
build: use cp/rm over mv for ci img build
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Dec 7, 2023
1 parent b126e73 commit 9cd61aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 9cd61aa

Please sign in to comment.