arasuezofis's picture
Update Dockerfile
0ad767f verified
FROM python:3.10
WORKDIR /app
# Install system libraries needed by ReportLab
RUN apt-get update && apt-get install -y \
libfreetype6 \
libjpeg62-turbo \
libpng16-16 \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY app.py .
# HF requires 7860
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]