降级jdk8,支持 armv6 armv7

This commit is contained in:
zxbu 2021-07-24 12:08:13 +08:00 committed by GitHub
parent abbcc08168
commit 8bffa83ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
FROM maven:3.6.3-jdk-11 AS maven FROM maven:3-jdk-8-alpine AS maven
USER root USER root
COPY ./ /tmp/code COPY ./ /tmp/code
RUN cd /tmp/code && mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true 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 COPY --from=maven /tmp/code/target/*.jar /webdav.jar
EXPOSE 8080 EXPOSE 8080
ENV JAVA_OPTS="-Xmx1g" ENV JAVA_OPTS="-Xmx1g"