Node.js rewrite: Express + микросервисная архитектура
This commit is contained in:
+5
-10
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user