[Docker] support multi-arch build (#9246)

* multi arch build

* fix buildx

* use openjdk

* fix bash install

* remove armv7

* remove arm64

* use jre 11

* add v8

* skip bash install

* add back tests

* remove v8

* minor change

* fix tag and push

* fix tag

* skip pull request for dockerhub push
This commit is contained in:
William Cheng
2021-04-14 11:15:12 +08:00
committed by GitHub
parent c285f393b0
commit 19b68f75de
2 changed files with 23 additions and 11 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
FROM java:8-jre-alpine
RUN apk add --no-cache bash
FROM openjdk:11.0-jre-buster
ADD target/openapi-generator-cli.jar /opt/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar