Install libmagic-dev for MIME type detection in Dockerfile

This commit is contained in:
vvzvlad
2025-02-03 04:11:10 +03:00
parent b95cf63b3c
commit 8176175a10
+1
View File
@@ -3,6 +3,7 @@ FROM python:3.11-slim
WORKDIR /app
RUN mkdir -p data
COPY requirements.txt .
RUN apt-get update && apt-get install -y libmagic-dev curl && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -r requirements.txt
COPY *.py .