output-service-rdb-consumer/Dockerfile

14 lines
434 B
Docker
Raw Permalink Normal View History

2021-08-12 15:59:28 +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/output-service-rdb-consumer.jar /app/output-service-rdb-consumer.jar
WORKDIR /app
2021-08-17 17:59:11 +02:00
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "output-service-rdb-consumer.jar"]