All Projects → sam0x17 → crystal-alpine

sam0x17 / crystal-alpine

Licence: other
Dockerfile for alpine linux with crystal that will allow you to compile static crystal binaries on any system

Programming Languages

shell
77523 projects
Dockerfile
14818 projects
crystal
512 projects

crystal-alpine

This Dockerfile allows you to compile static linux crystal binaries on any system that supports docker. The dockerhub repo can be found here:

https://hub.docker.com/r/durosoft/crystal-alpine/

Tags

Tags exist on the repo for every version of crystal since 0.25.0. Builds are not automated so every distinct tag should work properly.

Usage

Build the local file test.cr statically with the latest version of crystal:

docker run --rm -it -v $PWD:/app -w /app durosoft/crystal-alpine:latest crystal build test.cr -o output --release --static --no-debug

Build the local file test.cr statically with crystal 0.25.0:

docker run --rm -it -v $PWD:/app -w /app durosoft/crystal-alpine:0.25.0 crystal build test.cr -o output --release --static --no-debug
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].