Add azul docker files.

This commit is contained in:
Kavin 2023-06-01 19:38:20 +01:00
parent ea7d2553e0
commit cf44a321b6
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
2 changed files with 31 additions and 0 deletions

20
Dockerfile.azul Normal file
View file

@ -0,0 +1,20 @@
FROM azul/zulu-openjdk:17-latest AS build
WORKDIR /app/
COPY . /app/
RUN --mount=type=cache,target=/root/.gradle/caches/ \
./gradlew shadowJar
FROM azul/zulu-openjdk:17-jre-headless-latest
WORKDIR /app/
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:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar /app/piped.jar

11
Dockerfile.azul.ci Normal file
View file

@ -0,0 +1,11 @@
FROM azul/zulu-openjdk:17-jre-headless-latest
WORKDIR /app/
COPY ./piped.jar /app/piped.jar
COPY VERSION .
EXPOSE 8080
CMD java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar /app/piped.jar