File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -119,10 +119,8 @@ RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
119119RUN pip install --upgrade cython==0.28.6
120120
121121WORKDIR ${WORK_DIR}
122- COPY . ${WORK_DIR}
123-
124- # user needs ownership/write access to these directories
125- RUN chown --recursive ${USER} ${WORK_DIR} ${ANDROID_SDK_HOME}
122+ COPY --chown=user:user . ${WORK_DIR}
123+ RUN chown --recursive ${USER} ${ANDROID_SDK_HOME}
126124USER ${USER}
127125
128126# install python-for-android from current branch
Original file line number Diff line number Diff line change @@ -119,10 +119,8 @@ RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
119119RUN pip3 install - - upgrade cython == 0.28 .6
120120
121121WORKDIR ${WORK_DIR }
122- COPY . ${WORK_DIR }
123-
124- # user needs ownership/write access to these directories
125- RUN chown - - recursive ${USER } ${WORK_DIR } ${ANDROID_SDK_HOME }
122+ COPY - - chown = user :user . ${WORK_DIR }
123+ RUN chown - - recursive ${USER } ${ANDROID_SDK_HOME }
126124USER ${USER }
127125
128126# install python-for-android from current branch
You can’t perform that action at this time.
0 commit comments