article-extractor / Dockerfile
KJ24's picture
Update Dockerfile
2ce25e8 verified
raw
history blame contribute delete
575 Bytes
FROM python:3.10-slim
# Installer les librairies système nécessaires à newspaper3k et lxml
RUN apt-get update && apt-get install -y \
libxml2-dev \
libxslt1-dev \
libjpeg-dev \
zlib1g-dev \
libpng-dev \
libglib2.0-0 \
libgl1 \
libffi-dev \
build-essential \
python3-dev \
gcc \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]