Spaces:
Sleeping
Sleeping
| FROM python:3.11 | |
| WORKDIR /app | |
| # Copy dependency files | |
| COPY pyproject.toml ./ | |
| COPY requirements.txt* ./ | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install streamlit pillow | |
| # Copy application files | |
| COPY . . | |
| # Create data directories | |
| RUN mkdir -p data/images | |
| # Expose port | |
| EXPOSE 8501 | |
| # Set environment variables for Streamlit | |
| ENV STREAMLIT_SERVER_PORT=8501 | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| # Run the application | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] |