Spaces:
Running
Running
# Use an official Python runtime | |
FROM python:3.9-slim | |
# Install dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy application files | |
COPY . . | |
# Expose ports for Flask and Streamlit | |
EXPOSE 5000 8501 | |
# Run both Flask and Streamlit using a process manager | |
CMD ["sh", "-c", "python run.py & streamlit run app.py --server.port=8501 --server.enableCORS=false"] | |