mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
change docker
This commit is contained in:
@@ -2,9 +2,14 @@ FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
# Копируем requirements.txt
|
||||
COPY backend/requirements.txt .
|
||||
|
||||
# Устанавливаем зависимости
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
# Копируем исходники
|
||||
COPY backend/ .
|
||||
|
||||
CMD ["uvicorn", "run.py"]
|
||||
# Запускаем приложение
|
||||
CMD ["python", "run.py"]
|
||||
|
Reference in New Issue
Block a user