Piped-Backend/Dockerfile.openj9

21 lines
560 B
Docker
Raw Normal View History

FROM ibm-semeru-runtimes:open-17-jdk AS build
WORKDIR /app/
COPY . /app/
RUN --mount=type=cache,target=/root/.gradle/caches/ \
./gradlew shadowJar
FROM ibm-semeru-runtimes:open-17-jre
WORKDIR /app/
COPY --from=build /app/build/libs/piped-1.0-all.jar /app/piped.jar
COPY VERSION .
EXPOSE 8080
2022-11-15 09:33:25 +00:00
CMD java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseParallelGC -XX:-UseBiasedLocking -Xshareclasses:allowClasspaths -Xtune:virtualized -jar /app/piped.jar