-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
34 lines (28 loc) · 1.53 KB
/
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
27
28
29
30
31
32
33
34
FROM maven:3
# Allow mvnDebug too
RUN ln -s /usr/share/maven/bin/mvnDebug /usr/bin/mvnDebug
RUN apt-get update && apt-get install -y -q build-essential && \
rm -rf /var/lib/apt/lists/*
# Installs Ant
ENV ANT_VERSION=1.9.7 ANT_HOME=/opt/ant PATH=${PATH}:/opt/ant/bin
RUN cd && \
wget http://www.us.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
tar -xzf apache-ant-${ANT_VERSION}-bin.tar.gz && \
mv apache-ant-${ANT_VERSION} ${ANT_HOME} && \
rm apache-ant-${ANT_VERSION}-bin.tar.gz
# https://github.com/joyent/docker-node/blob/master/0.10/Dockerfile
# verify gpg and sha256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc
# gpg: aka "Timothy J Fontaine (Work) <[email protected]>"
# gpg: aka "Julien Gilli <[email protected]>"
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D 114F43EE0176B71C7BC219DD50A3051F888C628D
ENV NODE_VERSION=0.12.7 NPM_VERSION=2.13.3
RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --verify SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \
&& tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \
&& npm install -g npm@"$NPM_VERSION" \
&& npm cache clear
# Allow connection to github.com
COPY ssh_known_hosts /etc/ssh/ssh_known_hosts