File tree 2 files changed +4
-8
lines changed
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
119
119
RUN pip install --upgrade cython==0.28.6
120
120
121
121
WORKDIR ${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}
126
124
USER ${USER}
127
125
128
126
# 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
119
119
RUN pip3 install - - upgrade cython == 0.28 .6
120
120
121
121
WORKDIR ${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 }
126
124
USER ${USER }
127
125
128
126
# install python-for-android from current branch
You can’t perform that action at this time.
0 commit comments