Browse Source

Merge pull request #25 from zxbu/zxbu-patch-1

降级jdk8,支持 armv6 armv7
main
zxbu 4 years ago committed by GitHub
parent
commit
0e9cce633d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/docker.yml
  2. 4
      Dockerfile

2
.github/workflows/docker.yml

@ -66,7 +66,7 @@ jobs: @@ -66,7 +66,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

4
Dockerfile

@ -1,10 +1,10 @@ @@ -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"

Loading…
Cancel
Save