docker: add and use Openj9 as the latest image.

This commit is contained in:
FireMasterK 2021-02-09 15:46:22 +05:30
parent 2aeb9cea04
commit 74d6d89b52
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58
2 changed files with 47 additions and 2 deletions

17
Dockerfile.openj9 Normal file
View file

@ -0,0 +1,17 @@
FROM adoptopenjdk/openjdk11-openj9:slim AS build
WORKDIR /app/
COPY . /app/
RUN chmod +x ./gradlew && ./gradlew shadowJar
FROM adoptopenjdk/openjdk11-openj9:jre
WORKDIR /app/
COPY --from=build /app/build/libs/piped-1.0-all.jar /app/piped.jar
EXPOSE 8080
CMD java -jar /app/piped.jar