Node.js rewrite: Express + микросервисная архитектура

This commit is contained in:
2026-05-31 17:19:53 +03:00
parent 9205492d01
commit d6adb59d4a
20 changed files with 375 additions and 540 deletions
+5 -10
View File
@@ -1,16 +1,11 @@
FROM python:3.12-slim
FROM node:23-alpine
WORKDIR /app
# Зависимости
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY package.json .
RUN npm install --production
# Код
COPY . .
# Порт
EXPOSE 5000
# Запуск
CMD ["python", "app.py"]
EXPOSE 3000
CMD ["node", "src/index.js"]