2020-05-20 15:22:57 +02:00
|
|
|
FROM openjdk:11-jre
|
2020-04-04 18:47:24 +02:00
|
|
|
|
|
|
|
ENV APPLICATION_USER ktor
|
2020-05-20 15:43:41 +02:00
|
|
|
RUN useradd $APPLICATION_USER
|
2020-04-04 18:47:24 +02:00
|
|
|
|
|
|
|
RUN mkdir /app
|
|
|
|
RUN chown -R $APPLICATION_USER /app
|
|
|
|
|
|
|
|
USER $APPLICATION_USER
|
|
|
|
|
2020-04-05 11:14:02 +02:00
|
|
|
COPY ./build/libs/output-service-rdb.jar /app/output-service-rdb.jar
|
2020-04-04 18:47:24 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
2021-08-17 18:00:11 +02:00
|
|
|
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "output-service-rdb.jar"]
|