1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/jenkins/Dockerfile

24 lines
459 B
Docker
Raw Normal View History

2016-01-30 17:35:25 +02:00
#
# Dockerfile for jenkins
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
ENV JENKINS_HOME /var/jenkins_home
RUN set -xe \
&& apk add -U openjdk8 ttf-dejavu \
&& adduser -h $JENKINS_HOME -u 1000 -s /bin/sh -D jenkins \
&& wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war -O /jenkins.war \
&& rm -rf /var/cache/apk/*
VOLUME $JENKINS_HOME
WORKDIR $JENKINS_HOME
USER jenkins
EXPOSE 8080
CMD ["java", "-jar", "/jenkins.war"]