Skip to content

Commit

Permalink
fix: Docker using JDK 17 base image (#218)
Browse files Browse the repository at this point in the history
* fix: Docker using JDK 17 base image

Changes to be committed:
	modified:   Dockerfile

* chore: update deps
  • Loading branch information
ascheibal committed Apr 11, 2023
1 parent e82d693 commit b986924
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
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" ]
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-parent</artifactId>
<version>2022.0.1</version>
<version>2022.0.2</version>
<relativePath/>
</parent>

Expand Down

0 comments on commit b986924

Please sign in to comment.