This commit is contained in:
2025-03-05 16:28:54 +03:00
parent 6851b39c28
commit ac5eb45787
3 changed files with 84 additions and 226 deletions
+10 -2
View File
@@ -1,9 +1,17 @@
# /opt/rustdesk-organizer/Dockerfile
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY templates/ ./templates/
EXPOSE 8001
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8001"]
# Экспонируем оба порта
EXPOSE 8001 8002
# Запускаем два процесса Uvicorn для разных портов
CMD ["sh", "-c", "uvicorn app:app_get --host 0.0.0.0 --port 8001 & uvicorn app:app_post --host 0.0.0.0 --port 8002"]