abdessamad-bourkibate's picture
Update docker/Dockerfile
e91bbcd verified
raw
history blame contribute delete
546 Bytes
FROM python:3.11-slim
# System deps for matplotlib + fonts for PDF clarity
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
fonts-dejavu \
libfreetype6 \
libpng16-16 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY . /app
# Hugging Face Spaces expects port 7860
EXPOSE 7860
ENV PYTHONUNBUFFERED=1
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
CMD ["python", "main.py"]