Add common hotspot entrypoint.

This commit is contained in:
Kavin 2023-08-04 16:25:52 +01:00
parent 0d9d1be979
commit 1d9dbe32f1
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F
5 changed files with 17 additions and 4 deletions

View file

@ -11,10 +11,12 @@ FROM azul/zulu-openjdk:17-jre-headless-latest
WORKDIR /app/
COPY hotspot-entrypoint.sh /
COPY --from=build /app/build/libs/piped-1.0-all.jar /app/piped.jar
COPY VERSION .
EXPOSE 8080
CMD java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+HeapDumpOnOutOfMemoryError -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -jar /app/piped.jar
ENTRYPOINT ["/hotspot-entrypoint.sh"]