-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: add jvm options at started * bump: version to 2.3.8
- Loading branch information
1 parent
6e5c5f8
commit 2661095
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
FROM eclipse-temurin:21.0.4_7-jre | ||
|
||
ENV LANG=fr_FR.UTF-8 LANGUAGE=fr_FR:fr LC_ALL=fr_FR.UTF-8 | ||
# RUN apt-get update -y | ||
# RUN apt-get install fontconfig libretls musl-locales musl-locales-lang ttf-dejavu tzdata zlib -y | ||
|
||
WORKDIR /opt/pe/ | ||
COPY ./target/*.jar /opt/pe/pe.jar | ||
ENTRYPOINT ["java", "-jar", "/opt/pe/pe.jar"] | ||
ENV PATH_TO_JAR=/application/pe-bo.jar | ||
WORKDIR application | ||
RUN rm -rf /application | ||
ADD ./target/*.jar $PATH_TO_JAR | ||
|
||
ENV JAVA_TOOL_OPTIONS_DEFAULT \ | ||
-XX:MaxRAMPercentage=75 \ | ||
-XX:+UseParallelGC | ||
|
||
ENTRYPOINT [ "/bin/sh", "-c", \ | ||
"export JAVA_TOOL_OPTIONS=\"$JAVA_TOOL_OPTIONS_DEFAULT $JAVA_TOOL_OPTIONS\"; \ | ||
exec java -jar $PATH_TO_JAR" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters