output-service-rdb/Dockerfile
Torma Kristóf 15095f2d9f
Some checks failed
continuous-integration/drone/push Build is failing
revert to old build script
2020-05-20 15:37:21 +02:00

14 lines
537 B
Docker

FROM openjdk:11-jre
ENV APPLICATION_USER ktor
RUN adduser --defaults --gid '' $APPLICATION_USER
RUN mkdir /app
RUN chown -R $APPLICATION_USER /app
USER $APPLICATION_USER
COPY ./build/libs/output-service-rdb.jar /app/output-service-rdb.jar
WORKDIR /app
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"]