0:00 So now in this Docker file, we're gonna go ahead and make very similar 0:02 modifications that we've already done to our auth Docker file, which we know 0:06 is already running Prisma. So let's go back into the auth Docker 0:10 file, and the first thing we need to do is make sure we have OpenSSL 0:14 available on our Docker container. 0:17 So make sure we copy the OpenSSL command, and then we'll go back to the 0:21 job's Docker file. And let's go ahead and add it into both container 0:25 stages, so we have OpenSSL for the builder, 0:29 and paste it in as the runner as well. 0:33 So now we have OpenSSL, which is a dependency of Prisma. 0:36 Let's go ahead and directly copy the Prisma library into 0:40 our runtime container here so we have it available and can 0:44 build the source code when we build jobs. 0:47 Finally, we're gonna go down into the runner stage 0:50 now, and when we're copying over 0:51 our files from builder, we wanna go ahead and make sure we copy 0:56 the Prisma files. So let's go ahead and copy workspace, 1:00 apps, jobs, prisma directory. So we copy over the entire 1:04 prisma directory, and we have all the migrations 1:06 and schema that we know we'll 1:08 need. Then we'll go ahead and make sure this 1:10 is available inside of apps, 1:11 jobs, prisma. 1:14 So again, that's so that we can execute our migrations at 1:16 runtime and have the 1:17 schema available. 1:19 Finally, we're gonna go ahead and add one more copy statement here to 1:23 actually copy over the Prisma library. 1:26 So copy over workspace, libs, prisma. 1:30 In this case, we just need the package.json, 1:35 and make sure we copy this over into the libs, 1:39 prisma package.json inside of the container. 1:43 And so now we have all of the Prisma dependencies inside of this
The rest of the transcript is for members.
Sign in