Skip to content

Commit

Permalink
copy prisma before npm ci for all nextjs apps (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys authored Jan 25, 2025
1 parent d94adb2 commit 50fe83d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/Dockerfile.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/base/defer-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50fe83d

Please sign in to comment.