This commit is contained in:
Michiel Borkent 2020-03-21 14:37:29 +01:00
parent 125340ba3d
commit 6aa2389e6f

View file

@ -152,6 +152,10 @@ You may also download a binary from
[Github](https://github.com/borkdude/babashka/releases). For linux there is a
static binary available which can be used on Alpine.
## Docker
Check out the image on [Docker hub](https://hub.docker.com/r/borkdude/babashka/).
## Usage
``` shellsession
@ -1062,6 +1066,26 @@ $ sha1.clj babashka
"0AB318BE3A646EEB1E592781CBFE4AE59701EDDF"
```
### Package script as Docker image
`Dockerfile`:
``` dockerfile
FROM borkdude/babashka
RUN echo $'\
(println "Your command line args:" *command-line-args*)\
'\
>> script.clj
ENTRYPOINT ["bb", "script.clj"]
```
``` shell
$ docker build . -t script
...
$ docker run --rm script 1 2 3
Your command line args: (1 2 3)
```
## Thanks
- [adgoji](https://www.adgoji.com/) for financial support