⚠️ This post links to an external website. ⚠️
Hello, and welcome to Deploying Elixir. In this episode, we will be dockerizing an existing Phoenix application, which I have pre-created here. So we have something to work with. So before we begin, we need to talk a little bit about how Docker constructs the final image. It’s constructed of something called layers. So we start with a base layer, which we’ll see in a moment. Then we add files, add files, run some compilations, run more stuff. And then we end up in a final image, which is actually a base image, with all of the layers added as an overlays. So let’s start. I just generated a very brief Phoenix application without Ecto for the brave of simplicity. Let’s just start with running the application so we can see it’s actually working. So mix.ph server and yes it’s a default phoenix application so everything is working they’re fine so let’s just start writing our docker file so as i said before first must be our base layer so only from elixir.
continue reading on deployingelixir.eu
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.