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

добавление редисаъ3

This commit is contained in:
MoonTestUse1
2025-01-03 16:45:25 +06:00
parent 8ffa6c2540
commit 1749cff039
4 changed files with 15 additions and 17 deletions

View File

@@ -12,11 +12,11 @@ COPY backend/ .
# Создаем entrypoint скрипт
RUN echo '#!/bin/sh\n\
echo "Waiting for database..."\n\
sleep 5\n\
sleep 10\n\
echo "Running database migrations..."\n\
alembic upgrade head\n\
echo "Starting application..."\n\
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload' > /entrypoint.sh \
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --workers 1' > /entrypoint.sh \
&& chmod +x /entrypoint.sh
EXPOSE 8000