Change to use USER instead of su in commands
All checks were successful
andreas-personal/jenkins-ssh-docker-agent/pipeline/head This commit looks good
All checks were successful
andreas-personal/jenkins-ssh-docker-agent/pipeline/head This commit looks good
This commit is contained in:
parent
322757b9c3
commit
68721f6eae
10
Dockerfile
10
Dockerfile
@ -36,6 +36,10 @@ ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PAT
|
||||
RUN chown -R jenkins:jenkins /usr/local/flutter
|
||||
|
||||
# Run flutter doctor and upgrade
|
||||
RUN su jenkins -c flutter doctor -v
|
||||
RUN su jenkins -c flutter channel master
|
||||
RUN su jenkins -c flutter upgrade
|
||||
USER jenkins
|
||||
|
||||
RUN flutter doctor -v
|
||||
RUN flutter channel master
|
||||
RUN flutter upgrade
|
||||
|
||||
USER root
|
Loading…
x
Reference in New Issue
Block a user