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:37:21 +02:00
|
|
|
RUN adduser --defaults --gid '' $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
|
|
|
|
|
2020-04-05 11:14:02 +02:00
|
|
|
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "output-service-rdb.jar"]
|