Currently, my Dockerfile looks like this:
FROM debian:stable-slim as builder # 30 MB only
RUN # install build deps
RUN # bring in the code, compile
FROM debian:stable-slim as runner
RUN # install runtime deps
COPY --from=builder /install-prefix /install-prefix
And believe it or not, I messed up a runtime dep
I was wondering if nix could help with this. I’m not troubled with the 100MB nixos/nix
for the builder
stage, but for runner, I’d like to keep as small as possible. I also use tini
for the runner
, so using systemd
is out for that.