Created
September 24, 2016 07:58
-
-
Save suraphanL/f47d262a6f89b0ccab98f48cafcbf628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
# Create the jenkins user | |
RUN useradd -d "/var/jenkins_home" -u 1000 -m -s /bin/bash jenkins | |
# Create the folders and volume mount points | |
RUN mkdir -p /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins | |
VOLUME ["/var/log/jenkins", "/var/jenkins_home"] | |
USER jenkins | |
CMD ["echo", "Data container for Jenkins"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment