-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile-build
14 lines (10 loc) · 805 Bytes
/
Dockerfile-build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
COPY --from=ibmjava:8-sdk /opt/ibm/java /root/java
RUN mkdir -p /opt/mvn &&\
MAVEN_VERSION=$(wget -qO- https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/maven-metadata.xml | sed -n 's/\s*<release>\(.*\)<.*>/\1/p') &&\
wget -q -U UA_IBM_JAVA_Docker -O /opt/mvn/apache-maven-${MAVEN_VERSION}-bin.tar.gz https://search.maven.org/remotecontent?filepath=org/apache/maven/apache-maven/${MAVEN_VERSION}/apache-maven-${MAVEN_VERSION}-bin.tar.gz &&\
tar xf /opt/mvn/apache-maven-${MAVEN_VERSION}-bin.tar.gz -C /opt/mvn &&\
mv /opt/mvn/apache-maven-${MAVEN_VERSION} /opt/mvn/apache-maven &&\
rm -f /opt/mvn/apache-maven-${MAVEN_VERSION}-bin.tar.gz;
RUN mkdir -m 777 -p /config/resources
ENV JAVA_HOME=/root/java \
PATH=/root/java/jre/bin:/opt/mvn/apache-maven/bin:$PATH