ci: 后端 Dockerfile
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6937f9ece0
commit
9a9435e665
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
RUN corepack enable
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
COPY . .
|
||||
RUN pnpm exec prisma generate && pnpm build
|
||||
EXPOSE 3000
|
||||
CMD ["node", "dist/main.js"]
|
||||
Loading…
x
Reference in New Issue
Block a user