зеркало из https://github.com/microsoft/java.git
Added January 2020 PSU Dockerfile
This commit is contained in:
Родитель
5378e474b1
Коммит
a54f13e962
|
@ -0,0 +1,31 @@
|
|||
# This Zulu OpenJDK Dockerfile and corresponding Docker image are
|
||||
# to be used solely with Java applications or Java application components
|
||||
# that are being developed for deployment on Microsoft Azure or Azure Stack,
|
||||
# and are not intended to be used for any other purpose.
|
||||
|
||||
FROM mcr.microsoft.com/java/jdk:8u242-zulu-debian9
|
||||
MAINTAINER Zulu Enterprise Container Images <azul-zulu-images@microsoft.com>
|
||||
|
||||
ARG MAVEN_VERSION=3.6.2
|
||||
ARG USER_HOME_DIR="/root"
|
||||
ARG SHA=d941423d115cd021514bfd06c453658b1b3e39e6240969caf4315ab7119a77299713f14b620fb2571a264f8dff2473d8af3cb47b05acf0036fc2553199a5c1ee
|
||||
ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries
|
||||
|
||||
RUN apt-get -q update && \
|
||||
apt-get -y --no-install-recommends install curl && \
|
||||
mkdir -p /usr/share/maven /usr/share/maven/ref && \
|
||||
curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz && \
|
||||
echo "${SHA} /tmp/apache-maven.tar.gz" | sha512sum -c - && \
|
||||
tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 && \
|
||||
rm -f /tmp/apache-maven.tar.gz && \
|
||||
ln -s /usr/share/maven/bin/mvn /usr/bin/mvn && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV MAVEN_HOME /usr/share/maven
|
||||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
|
||||
|
||||
COPY October/debian9/maven/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh
|
||||
COPY October/debian9/maven/settings-docker.xml /usr/share/maven/ref/
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
|
||||
CMD ["mvn"]
|
Загрузка…
Ссылка в новой задаче