Skip to content

Commit 181fa12

Browse files
committed
run as user
1 parent 7ef54d5 commit 181fa12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.ci/docker/ubuntu/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ RUN rm install_linter.sh utils.sh requirements-lintrunner.txt
5353

5454
ARG ARM_SDK
5555
COPY ./arm-setup.sh /opt/arm-setup.sh
56+
RUN mkdir /opt/arm-sdk; chown ci-user:ci-user /opt/arm-sdk
5657
# Set up ARM SDK if needed
57-
RUN if [ -n "${ARM_SDK}" ]; then bash /opt/arm-setup.sh --i-agree-to-the-contained-eula /opt/arm-sdk; chown -R ci-user:ci-user /opt/arm-sdk; fi
58+
RUN if [ -n "${ARM_SDK}" ]; then su - ci-user -c "bash /opt/arm-setup.sh --i-agree-to-the-contained-eula /opt/arm-sdk"; fi
5859

5960
USER ci-user
6061
CMD ["bash"]

0 commit comments

Comments
 (0)