Spaces:
Sleeping
Sleeping
| # Use official Python image | |
| FROM python:3.10 | |
| # Set environment variable to fix protobuf error | |
| ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy all files to the container | |
| COPY . . | |
| # Install protobuf first, then rest | |
| RUN pip install --upgrade pip && \ | |
| pip install protobuf==3.20.* && \ | |
| pip install -r requirements.txt | |
| # Run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |