Great job! why not use the --static argument instead of copying dependencies?
Hey David! Thanks for the comment and good observation! While writing this post I also thought that when using --static I wouldn't need to copy the dependencies. But then @bcardiff sent me this reference:
--static
Building fully statical linked executables is currently only supported on Alpine Linux. crystal-lang.org/reference/using_t...
And here is another good reference about statically compiling dependencies: crystal-lang.org/2020/02/02/alpine...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great job!
why not use the --static argument instead of copying dependencies?
Hey David! Thanks for the comment and good observation! While writing this post I also thought that when using
--static
I wouldn't need to copy the dependencies. But then @bcardiff sent me this reference:And here is another good reference about statically compiling dependencies: crystal-lang.org/2020/02/02/alpine...