HUB
Sign inSign up

dannyben/crystal

By dannyben

•Updated about 7 years ago

Docker Alpine Crystal Image

Image
0

384

dannyben/crystal repository overview

⁠Docker Alpine Crystal Image

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:

⁠Usage

# 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

⁠Usage with docker-compose

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

Tag summary

Content type

Image

Digest

Size

178.1 MB

Last updated

about 7 years ago

docker pull dannyben/crystal