/
Dockerfile
27 lines (21 loc) · 880 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM jenkins:latest
USER root
RUN curl https://get.docker.io/builds/Linux/x86_64/docker-latest -o /usr/local/bin/docker
RUN chmod +x /usr/local/bin/docker
RUN groupadd docker -g 999
RUN usermod -aG docker jenkins
# NodeJS
RUN curl -sL https://deb.nodesource.com/setup_0.12 | bash -
RUN apt-get install -y nodejs
RUN npm install -g gulp
# Anaconda
RUN apt-get update && apt-get install -y wget bzip2 ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/archive/Anaconda-2.2.0-Linux-x86_64.sh && \
/bin/bash /Anaconda-2.2.0-Linux-x86_64.sh -b -p /opt/conda && \
rm /Anaconda-2.2.0-Linux-x86_64.sh && \
/opt/conda/bin/conda install --yes conda==3.14.0
USER jenkins
ENV PATH /opt/conda/bin:$PATH
ENTRYPOINT ["/usr/local/bin/jenkins.sh"]