Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
maskshell committed Jul 26, 2019
1 parent fc2a8b9 commit 92b4645
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM jenkins/jnlp-slave:alpine
MAINTAINER Analyser <[email protected]>
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols" Vendor="DianPlus.cn"

ARG user=jenkins
ARG group=jenkins
ARG jk_home=/var/jenkins_home

USER root

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
RUN mkdir -p ${jk_home}/maven-prj-repos \
&& chown -R ${user}:${group} ${jk_home} \
&& apk add --no-cache maven apache-ant

USER ${user}

0 comments on commit 92b4645

Please sign in to comment.