chore: added docker support
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
bbf08ba2d7
commit
3bf7b3e388
1 changed files with 15 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue