Distributing the binary as a docker image

I'm playing with mojo at ArchLinux and I am very excited about it, considering it is not yet supporting Windows, nor cross compilation, I would like to build a docker image of my binary, and import it at my Windows docker desktop, I would like to import from the scratch docker, what is the minimal setup or dependencies that should be including in my docker image to get the binary built using mojo run smoothly?
4 Replies
ModularBot
ModularBot10mo ago
Congrats @Hasan Yousef, you just advanced to level 1!
Kushagra
Kushagra10mo ago
I think you should not need much if you're using compiled binary. Just add it, copy the dependencies explicitly used in the file, and build the image I believe it should run smoothly
Hasan Yousef
Hasan Yousef10mo ago
Thanks, but what if I'm using some python function or library?
Kushagra
Kushagra10mo ago
Then I believe you need python in the image as well Along with the specific libraries if not from the standard library
Want results from more Discord servers?
Add your server