10 lines
461 B
Docker
10 lines
461 B
Docker
FROM adoptopenjdk/openjdk11:alpine-jre
|
|
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
|