koufatzis
08/03/2021, 11:28 AMRyan
08/03/2021, 11:32 AMPrismaClient
in the first stage and then copy that to the final stage.
Also having prisma
in devDependencies
is recommended where you only install production dependencies in the final stage.Ryan
08/03/2021, 11:32 AMDominic Hadfield
08/03/2021, 11:33 AMDominic Hadfield
08/03/2021, 11:33 AMkoufatzis
08/03/2021, 11:43 AMdevDependencies
but I did not find any way to generate prisma client and install only prod dependencies in the final image. @Dominic Hadfield Thanks for checkingDominic Hadfield
08/03/2021, 12:30 PM