lilJudd/Dockerfile
limited_dev 3bf7b3e388 chore: added docker support
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
2023-05-18 20:51:06 +02:00

15 lines
225 B
Docker

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"]