Initial commit: SDI SaaS Platform foundation
- Complete monorepo structure with pnpm workspaces - Prisma database schema with 20+ entities - NestJS API with 9 core modules - BullMQ orchestration worker - AWS and Azure provider adapters - Docker Compose infrastructure - Complete documentation
This commit is contained in:
25
apps/worker/Dockerfile
Normal file
25
apps/worker/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM node:20-alpine AS base
|
||||
RUN npm install -g pnpm@8.15.0
|
||||
|
||||
FROM base AS dependencies
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml* ./
|
||||
COPY apps/worker/package.json ./apps/worker/
|
||||
COPY packages/database/package.json ./packages/database/
|
||||
COPY packages/shared-types/package.json ./packages/shared-types/
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
FROM base AS build
|
||||
WORKDIR /app
|
||||
COPY --from=dependencies /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN pnpm --filter @sdi/database db:generate
|
||||
RUN pnpm --filter @sdi/worker build
|
||||
|
||||
FROM base AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=dependencies /app/node_modules ./node_modules
|
||||
COPY --from=build /app/apps/worker/dist ./apps/worker/dist
|
||||
COPY --from=build /app/packages ./packages
|
||||
COPY apps/worker/package.json ./apps/worker/
|
||||
CMD ["node", "apps/worker/dist/main.js"]
|
||||
Reference in New Issue
Block a user