diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..72bc2da8f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM gradle:latest as builder +COPY . /dshackle +WORKDIR /dshackle +RUN gradle distZip +RUN unzip /dshackle/build/distributions/dshackle-*-SNAPSHOT.zip -d /dshackle/app + +FROM openjdk:latest +RUN microdnf install findutils +COPY --from=builder /dshackle/app/dshackle-*-SNAPSHOT /app +ENTRYPOINT [ "/app/bin/dshackle" ] diff --git a/README.adoc b/README.adoc index 8c618cab3..0dc96251e 100644 --- a/README.adoc +++ b/README.adoc @@ -338,6 +338,14 @@ gradle jib -Pdocker=gcr.io/myproject Gradle will prepare a Docker image and upload it to your custom Docker Registry at `gcr.io/myproject` (please change to address of your actual registry) +==== Alternative: Build Docker image +[source,bash] +---- +docker build . -t myproject/dshackle:{version-short} +---- + +This enables you to build a Docker image without Gradle. + ==== Architecture Dshackle is built using: