Spaces:
Sleeping
Sleeping
File size: 478 Bytes
b6ef60b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use a lightweight Python version
FROM python:3.10-slim
# Set up the working directory
WORKDIR /app
# Copy the requirements file first (better for caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app code
COPY . .
# Expose the port that Hugging Face expects (7860)
EXPOSE 7860
# Run Streamlit on port 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |