Skip to content

Commit aed7823

Browse files
committed
fixed: docker run prisma error
1 parent 6a7bb38 commit aed7823

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ RUN npm install -g pnpm
88

99
# Copy package files
1010
COPY package.json pnpm-lock.yaml ./
11+
COPY prisma ./prisma/
1112
# Install all dependencies including devDependencies
1213
ENV NODE_ENV=development
1314
RUN pnpm install --frozen-lockfile
14-
15-
COPY . .
16-
1715
# Generate Prisma client
1816
RUN npx prisma generate
17+
18+
19+
COPY . .
1920
# Compile TypeScript into JavaScript
2021
RUN pnpm run build
2122

0 commit comments

Comments
 (0)