mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add azul docker files.
This commit is contained in:
parent
ea7d2553e0
commit
cf44a321b6
2 changed files with 31 additions and 0 deletions
20
Dockerfile.azul
Normal file
20
Dockerfile.azul
Normal 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
11
Dockerfile.azul.ci
Normal 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
|
Loading…
Reference in a new issue