Skip to content

Commit

Permalink
Add azul docker files.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Jun 1, 2023
1 parent ea7d255 commit cf44a32
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile.azul
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions Dockerfile.azul.ci
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf44a32

Please sign in to comment.