Spaces:
Configuration error
Configuration error
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create directory for Streamlit configuration with proper permissions | |
| RUN mkdir -p /.streamlit && chmod 777 /.streamlit | |
| # Copy requirements and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Set environment variables | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| # Command to run the application | |
| CMD ["streamlit", "run", "streamlit_app.py"] |