output-service-rdb/Dockerfile

14 lines
532 B
Docker
Raw Normal View History

2020-04-04 18:47:24 +02:00
FROM openjdk:8-jre-alpine
ENV APPLICATION_USER ktor
RUN adduser -D -g '' $APPLICATION_USER
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"]