diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..39a8482 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM gradle:focal as build + +WORKDIR /app +COPY . . +RUN gradle clean +RUN gradle build + + +FROM scratch +COPY --from=build /app/lib/build/libs/* . +COPY --from=build /app/lib/build/deps/* . \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ffeb5e4 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +DOCKER_BUILDKIT=1 docker build --file Dockerfile --output build .