feat: add notification microservices and transactional outbox
Deploy To Ghaymah / quality (push) Has been cancelled
Deploy To Ghaymah / deploy (push) Has been cancelled

This commit is contained in:
boutmoun123
2026-08-05 14:46:12 +03:00
parent 2fd5322ef7
commit 8147f3b191
62 changed files with 2212 additions and 126 deletions
+26
View File
@@ -0,0 +1,26 @@
FROM node:22-alpine AS dependencies
WORKDIR /app
COPY package*.json ./
RUN npm ci
FROM dependencies AS build
COPY . .
RUN npm run build
FROM node:22-alpine AS api-gateway
WORKDIR /app
ENV NODE_ENV=production
COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY package.json ./
EXPOSE 4000
CMD ["node", "dist/main.js"]
FROM node:22-alpine AS notification-service
WORKDIR /app
ENV NODE_ENV=production
COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY package.json ./
EXPOSE 4001
CMD ["node", "dist/apps/notification-service/main.js"]