From 8bffa83ce9c5bb947f7c1265f1702f707ec8d114 Mon Sep 17 00:00:00 2001 From: zxbu <32785355+zxbu@users.noreply.github.com> Date: Sat, 24 Jul 2021 12:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E7=BA=A7jdk8=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20armv6=20armv7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37a5e00..10a94c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM maven:3.6.3-jdk-11 AS maven +FROM maven:3-jdk-8-alpine AS maven USER root COPY ./ /tmp/code RUN cd /tmp/code && mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -FROM openjdk:11-jdk-oracle +FROM openjdk:8-jdk-alpine COPY --from=maven /tmp/code/target/*.jar /webdav.jar EXPOSE 8080 ENV JAVA_OPTS="-Xmx1g"