X commited on
Commit
93266f9
·
verified ·
1 Parent(s): d6f1914

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -9
Dockerfile CHANGED
@@ -1,18 +1,13 @@
1
  FROM python:3.10-slim
2
 
3
- # Устанавливаем Node.js и PeerJS
4
  RUN apt-get update && apt-get install -y curl && \
5
- curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
6
  apt-get install -y nodejs && \
7
- npm install -g peer
 
8
 
9
  WORKDIR /app
10
-
11
- # Копируем ТОЛЬКО app.py
12
  COPY app.py .
13
 
14
- # Устанавливаем Python-зависимости прямо здесь (без requirements.txt)
15
- RUN pip install fastapi uvicorn python-multipart jinja2
16
-
17
- # Запускаем
18
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Устанавливаем Node.js и PeerJS ПРАВИЛЬНО
4
  RUN apt-get update && apt-get install -y curl && \
5
+ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
6
  apt-get install -y nodejs && \
7
+ npm install -g peer && \
8
+ pip install --no-cache-dir fastapi uvicorn[standard] python-multipart
9
 
10
  WORKDIR /app
 
 
11
  COPY app.py .
12
 
 
 
 
 
13
  CMD ["python", "app.py"]