Spaces:
Sleeping
Sleeping
| FROM python:3.10 | |
| # Create app directory | |
| WORKDIR /code | |
| # Copy all files first | |
| COPY . . | |
| # Install dependencies | |
| RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt | |
| # Make app.sh executable | |
| RUN chmod +x app.sh | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["bash", "app.sh"] |