For those who deploy using docker, what do you generally include in your final image for your api (post builder)? Im figuring out how thin I can make the image using multi stage builds, but I think for stuff like migrations the prisma cli and all its system depencies are stil necessary (unless its better to use a separate image for that?
r
Ryan
07/23/2020, 7:31 AM
Hey @Jonathan 👋
You can use the alpine version of node as that would generate the smallest build. You would need all dependencies (node_modules) anyway so I personally don’t think you would benefit much from a multi-stage build.
j
Jonathan
07/23/2020, 7:35 AM
Hey Ryan, gotcha, I wanted to double check just in case, thanks! As an aside, it is amazing how on point you are with your service . I want to give my appreciation for that.