Spaces:
Running
Running
File size: 687 Bytes
d1adc0b f31563d d1adc0b f31563d d1adc0b f31563d d1adc0b f31563d d1adc0b f31563d d1adc0b fbd5d54 f31563d d1adc0b a8dc8ee | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | FROM python:3.11-slim
# Set the working directory
WORKDIR /app
# Install system dependencies for Streamlit and health checks
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy all files from your root (including app.py) into the container
COPY . .
# Expose the Hugging Face default port
EXPOSE 7860
# Run the app from the root directory
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] |