feat: add notification microservices and transactional outbox
هذا الالتزام موجود في:
26
Dockerfile.microservices
Normal file
26
Dockerfile.microservices
Normal 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"]
|
||||
المرجع في مشكلة جديدة
حظر مستخدم