FROM opensuse/catatonit:0.2.0 as init
FROM nodejs
ADD package.json /app
# ... blah blah blah
COPY --from=init /catatonit /catatonit
ENTRYPOINT ["/catatonit"]
CMD ["node", "app.js"]
That way it's readily available as a compiled static binary for use in containers without having to manage the download & compilation myself. I could make part of a multi-stage build do that for me, but I think it would be better to have that done once rather than everyone having to correctly get the right calls to gcc et all.
It would be also very awesome if that pre-made image was compiled for a bunch of different architectures, like arm64.
I'm thinking something like:
That way it's readily available as a compiled static binary for use in containers without having to manage the download & compilation myself. I could make part of a multi-stage build do that for me, but I think it would be better to have that done once rather than everyone having to correctly get the right calls to
gcc
et all.It would be also very awesome if that pre-made image was compiled for a bunch of different architectures, like arm64.