TheCitadelofRicks/Dockerfile
Hannes Braun 5dd11bbe6c Update required Java version to 21
Also update Spring to 3.2.4.
This is required as the old spring version does not support Java 21.
2024-04-09 19:08:47 +02:00

10 lines
457 B
Docker

FROM eclipse-temurin:21-jre-alpine
RUN addgroup -S spring && adduser -S spring -G spring
#RUN groupadd -r spring && useradd -r -g spring spring # for openjdk:xx builds
RUN mkdir /tcor && chown spring:spring /tcor
USER spring:spring
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} thecitadelofricks.jar
ENTRYPOINT ["java","-Djavax.net.ssl.trustStore=/tcor/cacerts", "-Djavax.net.ssl.trustStorePassword=changeit", "-jar","/thecitadelofricks.jar"]
VOLUME /tcor