-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (16 loc) · 689 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This Dockerfile is used to build an image containing basic stuff to be used as a Jenkins slave build node. based on evarga/jenkins-slave
FROM evarga/jenkins-slave
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Install curl, maven,
RUN apt-get update && apt-get install -y \
curl \
git \
openjdk-8-jdk \
sshpass \
&& rm -rf /var/lib/apt/lists/*
# Add node version 8 which should bring in npm, add maven and required ssl certificates to contact maven central
RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
RUN apt-get install -y nodejs maven ca-certificates-java && update-ca-certificates -f
RUN npm install -g npm
RUN npm --version
CMD ["/usr/sbin/sshd", "-D"]