Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Dockerfile support #279

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
8 changes: 8 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading