Skip to content

Commit

Permalink
added andreptb/maven-3.2.5-jdk6-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
andrealbinop committed May 23, 2016
1 parent 214fa80 commit 64d6b62
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [`3.3.9-jdk7` (*jdk-7/Dockerfile*)](https://github.com/andreptb/Dockerfiles/blob/master/maven/jdk-7/Dockerfile)
- [`3.3.9-jdk7-alpine` (*alpine/jdk-7/Dockerfile*)](https://github.com/andreptb/Dockerfiles/blob/master/maven/alpine/jdk-7/Dockerfile)
- [`3.2.5`, `3.2.5-jdk6` (*jdk-6/Dockerfile*)](https://github.com/andreptb/Dockerfiles/blob/master/maven/jdk-6/Dockerfile)
- [`3.2.5-jdk6-alpine` (*alpine/jdk-6/Dockerfile*)](https://github.com/andreptb/Dockerfiles/blob/master/maven/alpine/jdk-6/Dockerfile)

# What is Maven?

Expand Down
17 changes: 17 additions & 0 deletions maven/alpine/jdk-6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM andreptb/oracle-java:6-alpine

MAINTAINER Luciano Mores <[email protected]>

ENV MAVEN_VERSION 3.2.5
ENV MAVEN_HOME /usr/lib/maven
ENV PATH /usr/lib/maven/bin:$JAVA_HOME/bin:$PATH

RUN apk --no-cache add --virtual build-dependencies wget && \
cd /tmp && \
wget -q http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz -O - | tar xzf - && \
mv /tmp/apache-maven-$MAVEN_VERSION /usr/lib/maven && \
ln -s /usr/lib/maven/bin/mvn /usr/bin/mvn && \
rm -rf /tmp/* && \
apk del --purge build-dependencies

CMD ["mvn", "--version"]
1 change: 1 addition & 0 deletions maven/alpine/jdk-6/README.md

0 comments on commit 64d6b62

Please sign in to comment.