benchmark-service/Dockerfile

14 lines
478 B
Docker
Raw Normal View History

2020-10-21 01:28:25 +02:00
FROM openjdk:11-jre
ENV APPLICATION_USER ktor
RUN useradd $APPLICATION_USER
RUN mkdir /app
RUN chown -R $APPLICATION_USER /app
USER $APPLICATION_USER
2020-10-21 01:29:30 +02:00
COPY ./build/libs/benchmark-service.jar /app/benchmark-service.jar
2020-10-21 01:28:25 +02:00
WORKDIR /app
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "benchmark-service.jar"]