diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eb6b700 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# Build +FROM eclipse-temurin:17-jdk AS build +LABEL authors="pjh5365" + +WORKDIR /src +COPY . /src +RUN ./gradlew build + +# Run +FROM eclipse-temurin:17-jre +EXPOSE 8081 +COPY --from=build /src/build/libs/*SNAPSHOT.jar kaboo-auth.jar + +ENTRYPOINT ["java", "-jar", "kaboo-auth.jar"]