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-24 00:03:42 +06:00
parent baaf9afc84
commit 3660537cd8
4 changed files with 26 additions and 54 deletions

View File

@@ -1,13 +1,10 @@
# docker/backend/Dockerfile
FROM python:3.11-slim
WORKDIR /app
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
CMD ["python", "run.py"]
COPY . .
CMD ["uvicorn", "run.py"]