diff --git a/templates/Dockerfile.ejs b/templates/Dockerfile.ejs index 44ba526..126443c 100644 --- a/templates/Dockerfile.ejs +++ b/templates/Dockerfile.ejs @@ -89,7 +89,7 @@ RUN RELEASE=$(awk -F'@' '{print $2}' /home/meteor/.meteor/release) && curl https <% } -%> # Install node modules COPY<% if (options.link) { %> --link<% } %> <%= packageFiles.join(' ') %> ./ -<% if (trpc && prisma) { -%> +<% if (nextjs && prisma) { -%> COPY<% if (options.link) { %> --link<% } %> prisma . <% } -%> RUN <%- buildCache %><%= packagerInstall %> @@ -99,7 +99,7 @@ RUN meteor npm install <% } -%> <% if (prisma) { -%> # Generate Prisma Client -<% if (!trpc) { -%> +<% if (!nextjs) { -%> COPY<% if (options.link) { %> --link<% } %> prisma . <% } -%> RUN <%= npx %> prisma generate diff --git a/test/base/defer-build/Dockerfile b/test/base/defer-build/Dockerfile index 277cab9..deec4f4 100644 --- a/test/base/defer-build/Dockerfile +++ b/test/base/defer-build/Dockerfile @@ -22,10 +22,10 @@ RUN apt-get update -qq && \ # Install node modules COPY package-lock.json package.json ./ +COPY prisma . RUN npm ci # Generate Prisma Client -COPY prisma . RUN npx prisma generate # Copy application code