Spaces:
Sleeping
Sleeping
FROM python:3.10-slim | |
WORKDIR /app | |
# Copy requirements first for better caching | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# Copy the rest of the application | |
COPY . . | |
# Make port configurable via environment variable | |
ENV PORT=8501 | |
EXPOSE ${PORT} | |
# Use the correct path to app.py | |
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |