1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

починка уведомлени в тг2222

This commit is contained in:
MoonTestUse1
2025-01-04 05:23:27 +06:00
parent cb9a10e36c
commit 635d171448
5 changed files with 15 additions and 19 deletions

View File

@@ -2,21 +2,12 @@ FROM python:3.11-slim
WORKDIR /app
# Устанавливаем необходимые пакеты
RUN apt-get update && apt-get install -y netcat-traditional dos2unix && rm -rf /var/lib/apt/lists/*
# Устанавливаем зависимости
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Копируем код приложения
# Копируем исходный код
COPY backend/ .
# Делаем скрипт исполняемым и устанавливаем правильные права
RUN chmod +x /app/scripts/init.sh && \
chown -R root:root /app/scripts/init.sh && \
dos2unix /app/scripts/init.sh
EXPOSE 8000
CMD ["/bin/bash", "/app/scripts/init.sh"]
# Запускаем приложение
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]