sample-service-consumer/Dockerfile
Torma Kristóf 489bd376e3
All checks were successful
continuous-integration/drone/push Build is passing
remove deprecated stuff
2021-08-17 17:59:31 +02:00

14 lines
422 B
Docker

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
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "sample-service-consumer.jar"]