Spaces:
Runtime error
Runtime error
| # Use the official Streamlit image as a base or a Python image with Streamlit installed | |
| # For simplicity, we'll stick to python:3.9-slim and install Streamlit. | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY app.py . | |
| # Expose the port Streamlit runs on | |
| EXPOSE 8501 | |
| # Command to run the Streamlit application | |
| CMD ["streamlit", "run", "app.py"] | |