-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Docker using JDK 17 base image (#218)
* fix: Docker using JDK 17 base image Changes to be committed: modified: Dockerfile * chore: update deps
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 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,13 +1,16 @@ | ||
FROM adoptopenjdk:11-jre-hotspot | ||
FROM eclipse-temurin:17-jre | ||
|
||
WORKDIR / | ||
|
||
COPY [ "./target/docker/dgcg.jar", "/dgcg.jar" ] | ||
|
||
ENV JAVA_OPTS="$JAVA_OPTS -Xms256M -Xmx1G" | ||
|
||
EXPOSE 8080 | ||
EXPOSE 8090 | ||
|
||
RUN mkdir /logs | ||
RUN chown 65534:65534 /logs | ||
|
||
USER 65534:65534 | ||
|
||
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /dgcg.jar" ] | ||
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Dspring.profiles.active=dev -Djava.security.egd=file:/dev/./urandom -jar /dgcg.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