add piped dockerfile
This commit is contained in:
parent
0025a3a84e
commit
4f834b1a2c
1 changed files with 26 additions and 1 deletions
|
@ -1 +1,26 @@
|
||||||
FROM git.dc09.ru/darkcat09/openj9:latest AS build
|
FROM eclipse-temurin:21-jdk-noble AS build
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt update && apt install -y git && rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN git clone --single-branch --depth 1 https://github.com/TeamPiped/Piped-Backend.git ./
|
||||||
|
|
||||||
|
RUN ./gradlew shadowJar
|
||||||
|
RUN sh -c 'echo "$(git log -1 --date=short --pretty=format:%cd)-$(git rev-parse --short HEAD)" >VERSION'
|
||||||
|
|
||||||
|
# ------
|
||||||
|
|
||||||
|
FROM git.dc09.ru/darkcat09/openj9:latest AS run
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=build /app/build/libs/piped-1.0-all.jar /app/piped.jar
|
||||||
|
COPY --from=build /app/VERSION /app/VERSION
|
||||||
|
|
||||||
|
CMD java -server -Xmx${MAX_MEMORY:-1G} -Xaggressive \
|
||||||
|
-XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication \
|
||||||
|
-XX:+UseCompressedOops -XX:+UseNUMA -XX:+IdleTuningGcOnIdle -Xgcpolicy:gencon \
|
||||||
|
-Xshareclasses:allowClasspaths -Xtune:virtualized -Xcompactgc \
|
||||||
|
-jar /app/piped.jar
|
||||||
|
|
||||||
|
# ------
|
||||||
|
|
Loading…
Add table
Reference in a new issue