Added July 2019 PSU Dockerfiles

This commit is contained in:
Tom Karbowski 2019-07-16 09:15:49 -05:00 коммит произвёл GitHub
Родитель 259fbf589f
Коммит c4d18357c5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 31 добавлений и 0 удалений

Просмотреть файл

@ -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:8u222-zulu-debian9
MAINTAINER Zulu Enterprise Container Images <azul-zulu-images@microsoft.com>
ARG MAVEN_VERSION=3.6.0
ARG USER_HOME_DIR="/root"
ARG SHA=fae9c12b570c3ba18116a4e26ea524b29f7279c17cbaadc3326ca72927368924d9131d11b9e851b8dc9162228b6fdea955446be41207a5cfc61283dd8a561d2f
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 debian9/maven/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh
COPY debian9/maven/settings-docker.xml /usr/share/maven/ref/
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
CMD ["mvn"]