first commit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-08-11 14:40:05 +02:00
commit 26acf2085c
27 changed files with 926 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
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/sample-service.jar /app/sample-service.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", "sample-service.jar"]