View on Docker Hub | View on GitHub
This is an Alpine docker image with Crystal and other dependencies designed for building static Crystal binaries.
It is based on the work of these individuals:
# Show crystal version
$ docker run -it --rm dannyben/crystal --version
# Compile ./hello.cr
$ docker run -it --rm -v $PWD:/app dannyben/crystal build --static --release hello.cr
You can use the provided docker-compose.yml file:
# Enter shell
$ docker-compose run bash
# See crystal version
$ docker-compose run version
# Build
$ docker-compose run build