Torma Kristóf
92a70b5611
All checks were successful
continuous-integration/drone/push Build is passing
14 lines
517 B
Docker
14 lines
517 B
Docker
FROM openjdk:11-jre
|
|
|
|
ENV APPLICATION_USER ktor
|
|
RUN useradd $APPLICATION_USER
|
|
|
|
RUN mkdir /app
|
|
RUN chown -R $APPLICATION_USER /app
|
|
|
|
USER $APPLICATION_USER
|
|
|
|
COPY ./build/libs/messagequeue-glue-1.0-SNAPSHOT.jar /app/messagequeue-glue-1.0-SNAPSHOT.jar
|
|
WORKDIR /app
|
|
|
|
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "messagequeue-glue-1.0-SNAPSHOT.jar"] |