Update Dockerfile

This commit is contained in:
InsanusMokrassar 2020-09-23 01:26:45 +06:00 committed by GitHub
parent e580d809e6
commit 3b159aa3fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -15,11 +15,9 @@ RUN useradd -s /bin/bash -G sudo -d /var/jenkins_home -u 1000 jenkins && chown -
VOLUME /var/jenkins_home/jenkins
RUN chown -R 1000:1000 /var/jenkins_home
COPY ./run /var/jenkins_home/
RUN chown -R 1000:1000 /var/jenkins_home && chmod +x /var/jenkins_home/run
USER 1000
COPY ./run /var/jenkins_home/
RUN chmod +x /var/jenkins_home/run
ENTRYPOINT /var/jenkins_home/run