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

change docker555

This commit is contained in:
MoonTestUse1
2024-12-24 00:15:06 +06:00
parent b5bb8c3d73
commit 8e0994ba3c
3 changed files with 13 additions and 30 deletions

View File

@@ -2,14 +2,13 @@ FROM python:3.11-slim
WORKDIR /app
# Копируем requirements.txt
COPY backend/requirements.txt .
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Устанавливаем зависимости
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Копируем исходники
COPY backend/ .
COPY . .
# Запускаем приложение
CMD ["python", "run.py"]