angristan / docker-pleroma

Docker image for the Pleroma federated social network
https://git.pleroma.social/pleroma/pleroma/
MIT License
351 stars 77 forks source link

Could this be a 2 step docker build #56

Open chmac opened 2 years ago

chmac commented 2 years ago

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.

coreagile commented 1 year ago

This would be lovely.

toastie89 commented 1 year ago

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

toastie89 commented 1 year ago

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