| FROM python:3.10-slim | |
| # Устанавливаем Node.js и PeerJS ПРАВИЛЬНО | |
| RUN apt-get update && apt-get install -y curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| npm install -g peer && \ | |
| pip install --no-cache-dir fastapi uvicorn[standard] python-multipart | |
| WORKDIR /app | |
| COPY app.py . | |
| CMD ["python", "app.py"] |