-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 869 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Pull base image.
FROM ubuntu:14.04
MAINTAINER Carlos Alexandro Becker <carlos@contaazul.com>
RUN sudo apt-get install -y software-properties-common && \
sudo add-apt-repository -y ppa:webupd8team/java && \
sudo apt-get update
RUN echo oracle-java6-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
sudo apt-get install -y oracle-java6-installer && \
sudo update-java-alternatives -s java-6-oracle
RUN sudo apt-get -y install git
RUN wget -O /tmp/maven.tar.gz http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz && \
sudo tar xzvf /tmp/maven.tar.gz -C /tmp && \
rm -rf /tmp/maven.tar.gz && \
sudo mv /tmp/apache-maven-3.2.5 /usr/share/maven3 && \
sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn
ENV M2_HOME /usr/share/maven3
ENV PATH $M2_HOME/bin:$PATH