X commited on
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -1,12 +1,18 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y curl && \
|
| 4 |
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
| 5 |
apt-get install -y nodejs && \
|
| 6 |
npm install -g peer
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
-
|
| 10 |
-
|
| 11 |
COPY app.py .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
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_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
|
| 16 |
+
|
| 17 |
+
# Запускаем
|
| 18 |
CMD ["python", "app.py"]
|