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 01:58:30 +06:00
parent 6c0669ddf4
commit 275d6ae766
3 changed files with 19 additions and 18 deletions

View File

@@ -2,17 +2,16 @@ FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Копируем requirements.txt первым
# Install Python dependencies
COPY backend/requirements.txt .
# Устанавливаем зависимости
RUN pip install --no-cache-dir -r requirements.txt
# Копируем остальные файлы
# Copy application code
COPY backend/ .
CMD ["python", "run.py"]
CMD ["python", "run.py"]