Update readme with docker instructions
@@ -41,9 +41,16 @@ sdk install jreleaser
*jbang*
[source]
+.stable
----
// Download, cache, and run
-jbang jreleaser@jreleaser <args>
+jbang jreleaser@jreleaser <command> [<args>]
+----
+[source]
+.early-access
+----
+// Download, cache, and run
+jbang jreleaser_snapshot@jreleaser <command> [<args>]
----
*manually*:
@@ -51,6 +58,21 @@ jbang jreleaser@jreleaser <args>
Download the pre-compiled binary from the link:https://github.com/jreleaser/jreleaser/releases[releases page],
uncompress and copy to the desired location.
+== Docker
+You can run JReleaser as a docker image, skipping the need to have a pre-installed Java runtime. You must mount the
+working directory at the `/workspace` volume, for example assuming the current directory is the starting point:
+
+[source]
+----
+$ docker run -it --rm -v `(pwd)`:/workspace jreleaser/jreleaser-slim:<tag> <command> [<args>]
+----
+
+NOTE: The `--basedir` argument will be automatically set to `--basedir=/workspace`.
+
+You may also need to map environment variables to the container, such as `JRELEASER_PROJECT_VERSION`,
+`JRELEASER_GITHUB_TOKEN`, or others depending on your setup. Refer to the
+link:https://jreleaser.org/guide/latest/configuration/environment.html[configuration] pages.
+
=== Maven
Configure the jreleaser-maven-plugin in your POM file
