Skip to content

Commit

Permalink
prisma generate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Sarmiento committed Sep 24, 2023
1 parent 9adfe8d commit 28ca4c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ RUN npm install
# ---- Build ----
FROM dependencies AS build
COPY . .
RUN npm run prisma:generate
RUN npm run build

# --- Release ----
FROM base AS release
# copy production node_modules
COPY --from=dependencies /app/prod_node_modules ./node_modules
# generate prisma client in node_modules
RUN npm run prisma:generate
# copy app sources
COPY . .
# copy build files from build image
Expand Down

0 comments on commit 28ca4c9

Please sign in to comment.