https://github.com/note/docker-ammonite
Dockerfile for Ammonite (Scala REPL)
https://github.com/note/docker-ammonite
Last synced: about 1 month ago
JSON representation
Dockerfile for Ammonite (Scala REPL)
- Host: GitHub
- URL: https://github.com/note/docker-ammonite
- Owner: note
- License: mit
- Created: 2020-03-12T09:37:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T09:13:10.000Z (over 5 years ago)
- Last Synced: 2025-01-12T09:27:15.101Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dockerfile for [Ammonite](https://github.com/lihaoyi/Ammonite)
Based on alpine for minimal size
Docker Hub: [https://hub.docker.com/r/note/ammonite](https://hub.docker.com/r/note/ammonite)
## Usage
### Run a script with Ammonite
You can execute a script `hello.sc` with:
```
docker run --rm -it -v $HOME/.cache/coursier:/root/.cache/coursier -v $(pwd)/hello.sc:/root/hello.sc note/ammonite amm hello.sc
```
### Open Ammonite REPL
```
docker run --rm -it -v $HOME/.cache/coursier:/root/.cache/coursier note/ammonite
```