Revert "fix(mining-service): 修复Docker构建问题"
This reverts commit f4380604d9.
This commit is contained in:
parent
f4380604d9
commit
1008672af9
|
|
@ -1,8 +0,0 @@
|
|||
node_modules
|
||||
dist
|
||||
.git
|
||||
.gitignore
|
||||
*.md
|
||||
*.log
|
||||
.env*
|
||||
prisma/seed.ts
|
||||
|
|
@ -14,7 +14,7 @@ RUN npm ci
|
|||
RUN DATABASE_URL="postgresql://user:pass@localhost:5432/db" npx prisma generate
|
||||
|
||||
COPY src ./src
|
||||
RUN npm run build && ls -la dist/ && test -f dist/main.js
|
||||
RUN npm run build
|
||||
|
||||
# 阶段2: 生产运行
|
||||
FROM node:20-alpine AS runner
|
||||
|
|
|
|||
|
|
@ -20,7 +20,5 @@
|
|||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist", "prisma"]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue