ambarltd / emulator

A local version of Ambar
2 stars 0 forks source link

Build a statically-linked binary #10

Closed lazamar closed 2 weeks ago

lazamar commented 2 weeks ago

There are some deps that can be dropped there. I'll look into it later. The final artefact is 107Mb in size.

galeaspablo commented 2 weeks ago

BTW you want to be using ENTRYPOINT instead of CMD

ENTRYPOINT is meant to be the program that runs in the image. Whereas CMD is supposed to be the arguments passed to the program, which can be overridden when doing docker run.