docker-pleroma icon indicating copy to clipboard operation
docker-pleroma copied to clipboard

Could this be a 2 step docker build

Open chmac opened this issue 3 years ago • 3 comments

I recently started using 2 step docker builds for node based stuff. This way I have node, npm, and all the dependencies installed in my build container, but my final container only contains the code + node itself.

Anyway, I'm not really sure about the details of how elixir works. But I suspect that some of the stuff required for the build process isn't then required for the running container. My first question then, is that true?

If it is, would you be open to a PR which switches the docker file to use a 2 step approach? I can't promise I can make it work, or that I will submit a PR at all, but before I tried I wanted to check.

chmac avatar Aug 30 '22 15:08 chmac

This would be lovely.

coreagile avatar Nov 17 '22 15:11 coreagile

What about installing the OTP release instead of building the software?

toastie89 avatar Jan 10 '23 15:01 toastie89

I've started to play with the OTP release here and will update if it works out.

toastie89 avatar Jan 15 '23 13:01 toastie89