chore: added docker support

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-05-18 20:51:06 +02:00
parent bbf08ba2d7
commit 3bf7b3e388

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM openjdk:17-jdk-slim AS build
WORKDIR /app
ADD . /app
RUN rm -rf /app/run
RUN ./gradlew shadowJar
FROM openjdk:17-jdk-slim AS run
COPY --from=build /app/build/libs/*-all.jar app.jar
CMD ["java", "-jar", "app.jar"]