sample-service-consumer/Dockerfile

14 lines
498 B
Docker
Raw Normal View History

2021-08-13 14:19:40 +02:00
FROM openjdk:11-jre
ENV APPLICATION_USER kotlin
RUN useradd $APPLICATION_USER
RUN mkdir /app
RUN chown -R $APPLICATION_USER /app
USER $APPLICATION_USER
COPY ./build/libs/sample-service-consumer.jar /app/sample-service-consumer.jar
WORKDIR /app
2021-08-16 13:57:17 +02:00
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "sample-service-consumer.jar"]