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

change docker

This commit is contained in:
MoonTestUse1
2024-12-23 23:44:46 +06:00
parent 876abdfc86
commit 866b0cbbf7
4 changed files with 18 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
# docker/backend/Dockerfile
FROM python:3.11-slim
WORKDIR /app
@@ -6,11 +7,7 @@ RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
CMD ["python", "run.py"]