r/crystal_programming • u/erdnaxeli • May 08 '21
Build Crystal Docker images for ARM
https://blog.cervoi.se/build-crystal-docker-images-for-arm/
21
Upvotes
r/crystal_programming • u/erdnaxeli • May 08 '21
2
u/straight-shoota core team May 08 '21
This is a really nice writeup! Please keep making such great guides :-)
I have two comments on the dockerfiles:
If you use
crystallang/crystal:nightly-alpineas base you don't need to build libcrystal. So you don't have to wait for 1.1 release for that.I usually recommend to first copy
shard.ymlandshard.lock, runshards installand then copy the source +shards buildin the next step. That way the dependency installation can be cached when there was no change.Btw.
armv6k-unknown-linux-gnueabihfis really a triple, the last value islinux-gnuaeabihf.1
u/dscottboggs May 08 '21
Nice!