Skip to content

Commit be2f3d2

Browse files
committed
fix docker file
1 parent c75b5d6 commit be2f3d2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,25 @@ RUN npm install -g pnpm
66

77
WORKDIR /home/gqty
88

9+
COPY pnpm-lock.yaml /home/gqty/
10+
11+
RUN pnpm fetch
12+
913
COPY package.json /home/gqty/
1014

1115
RUN pnpm i
1216

1317
COPY prisma /home/gqty/prisma
1418

15-
RUN pnpm exec prisma generate
19+
RUN pnpm prisma generate
1620

1721
COPY src /home/gqty/src
1822

19-
RUN pnpm exec tsup
23+
RUN pnpm prepare
2024

2125
COPY tsconfig.json /home/gqty/
2226

23-
RUN pnpm exec tsc
27+
RUN pnpm typecheck
2428

2529
ENV NODE_ENV=production
2630

0 commit comments

Comments
 (0)