Remove unnecessary description and whitespace from nexumi.mdc file
This commit is contained in:
25
apps/bot/Dockerfile
Normal file
25
apps/bot/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM node:22-alpine AS base
|
||||
WORKDIR /app
|
||||
RUN corepack enable
|
||||
|
||||
FROM base AS deps
|
||||
COPY package.json pnpm-workspace.yaml turbo.json tsconfig.base.json ./
|
||||
COPY apps/bot/package.json apps/bot/package.json
|
||||
COPY packages/shared/package.json packages/shared/package.json
|
||||
RUN pnpm install --frozen-lockfile=false
|
||||
|
||||
FROM deps AS build
|
||||
COPY . .
|
||||
RUN pnpm --filter @nexumi/shared build
|
||||
RUN pnpm --filter @nexumi/bot prisma:generate
|
||||
RUN pnpm --filter @nexumi/bot build
|
||||
|
||||
FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
RUN corepack enable
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY --from=build /app/apps/bot/dist ./apps/bot/dist
|
||||
COPY --from=build /app/apps/bot/prisma ./apps/bot/prisma
|
||||
COPY --from=build /app/packages/shared/dist ./packages/shared/dist
|
||||
COPY --from=build /app/apps/bot/package.json ./apps/bot/package.json
|
||||
CMD ["node", "apps/bot/dist/index.js"]
|
||||
Reference in New Issue
Block a user