3 ms·
FROM scratch CMD ['/some_golang_or_rust_program_without_dynlibs'] There you go. Never actually tried it but people here told it should work.
by ulzeraj 5y ago
FROM scratch
CMD ['/some_golang_or_rust_program_without_dynlibs']
There you go. Never actually tried it but people here told it should work.
- iximiuz 5y agoIt does work! Actually, it's my favorite type of containers so far https://iximiuz.com/en/posts/not-every-container-has-an-operating-system-inside/ https://iximiuz.com/en/posts/not-every-container-has-an-oper...
- eru 5y agoCompare https://en.wikipedia.org/wiki/Unikernel https://en.wikipedia.org/wiki/Unikernel and http://unikernel.org/ http://unikernel.org/
- edflsafoiewq 5y agoWhat's the difference with just using some_golang_or_rust_program_without_dynlibs directly?
- ulzeraj 5y agoI agree but on the other hand I can't really deny how containery stuff offers a standard way of deploying and automation.
- mrweasel 5y agoMaybe you want to run your application on Kubernetes? Nomad can just run an application directly, but I don't believe Kubernetes can.
- zaphar 5y agoIn isolation there is no difference. In fact if rust or go apps are the only apps you deploy containers are probably overkill for you. But if you also deploy java/node/python/ruby then containers provide not just reproducible builds but a common deployment method that is language/framework agnostic. And the consistency is often worth it even if some of the deployments don't strictly need docker themselves. Consistency is sometimes an underrated value but it can provide teams a lot of speedup when it's there.