Skip to content

Commit dd99c26

Browse files
committed
feat: 更新Dockerfile以使用npm run dbSchemaUpdate替代npx prisma db push
1 parent eff92ac commit dd99c26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ COPY . .
88
EXPOSE 3000
99
RUN chown -R node /usr/src/app && chown -R node /usr/src/node_modules
1010
USER node
11-
CMD ["sh", "-c", "npx prisma db push && npm start"]
11+
CMD ["sh", "-c", "npm run dbSchemaUpdate && npm start"]

0 commit comments

Comments
 (0)