diff --git a/Dockerfile.py2 b/Dockerfile.py2 index d86ce27553..5fa08a9c40 100644 --- a/Dockerfile.py2 +++ b/Dockerfile.py2 @@ -119,10 +119,9 @@ RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers RUN pip install --upgrade cython==0.28.6 WORKDIR ${WORK_DIR} -COPY . ${WORK_DIR} +COPY --chown=user:user . ${WORK_DIR} # user needs ownership/write access to these directories -RUN chown --recursive ${USER} ${WORK_DIR} ${ANDROID_SDK_HOME} USER ${USER} # install python-for-android from current branch diff --git a/Dockerfile.py3 b/Dockerfile.py3 index 9f349e8d2a..cc445e28c9 100644 --- a/Dockerfile.py3 +++ b/Dockerfile.py3 @@ -119,10 +119,9 @@ RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers RUN pip3 install --upgrade cython==0.28.6 WORKDIR ${WORK_DIR} -COPY . ${WORK_DIR} +COPY --chown=user:user . ${WORK_DIR} # user needs ownership/write access to these directories -RUN chown --recursive ${USER} ${WORK_DIR} ${ANDROID_SDK_HOME} USER ${USER} # install python-for-android from current branch