Spaces:
Build error
Build error
FROM python:3.11-slim | |
WORKDIR /app | |
# Install system dependencies | |
RUN apt-get update && \ | |
apt-get install -y curl && \ | |
rm -rf /var/lib/apt/lists/* | |
# Copy setup.sh and run it | |
COPY setup.sh . | |
RUN chmod +x setup.sh && ./setup.sh | |
# Copy requirements and install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy app code | |
COPY app.py . | |
EXPOSE 8501 | |
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"] |