diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..87ba946 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM gradle:jdk21-alpine AS build +COPY . . +RUN gradle -p api :build -x test + +FROM openjdk:jre-alpine +COPY --from=build /api/build/libs/api-0.0.1.jar school-api.jar +EXPOSE 8080 +ENTRYPOINT ["java","-jar","school-api.jar"] +