Spaces:
Running
Running
| FROM python:3.13.5-slim | |
| WORKDIR /app | |
| # Copy setup script and make it executable | |
| COPY requirements.txt . | |
| COPY setup.sh . | |
| RUN chmod +x setup.sh | |
| # Run the setup script | |
| RUN ./setup.sh | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . . | |
| RUN pip3 install -r requirements.txt | |
| EXPOSE 7860 | |
| HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |
| #------------ | |
| # Copy the rest of the application | |
| #COPY . . | |
| # Expose the port the app runs on | |
| #EXPOSE 7860 | |
| # Command to run the application | |
| #CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |