Skip to content

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

Notifications You must be signed in to change notification settings

fullcycleapp/crystal-alpine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 52.1%
  • Dockerfile 42.6%
  • Crystal 5.3%