File size: 503 Bytes
13745e6 263a93d 78268fb 263a93d 13745e6 263a93d 78268fb 263a93d 13745e6 c5b44b3 13745e6 263a93d 13745e6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use a lightweight Python image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy only the requirements file first (to optimize build cache)
COPY requirements.txt ./
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application files
COPY . .
# Expose the correct port for Hugging Face Spaces
EXPOSE 7860
# Run Streamlit app on the correct port
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|