Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use my alpine docker image to statically compile without any fuss: https://hub.docker.com/r/durosoft/crystal-alpine/

I'll be updating it later today with 0.25.1 support.

You can statically compile a local crystal file using a docker one-liner that is included in the description.



That's great! I've only heard complaints that it's difficult to statically compile. Sounds like a solved problem though.


The docker approach is I think a well kept secret but I'm trying to get more people to realize it's a thing. My gcf.cr tool abstracts this away for you if you are deploying to a Google Cloud Function




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: