forked from andrealbinop/Dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added andreptb/maven-3.2.5-jdk6-alpine
- Loading branch information
1 parent
214fa80
commit 64d6b62
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../README.md |