Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # Work inside /code | |
| WORKDIR /code | |
| # Copy everything into the image | |
| COPY . . | |
| # Expose the port Hugging Face expects for Docker Spaces (default 7860) | |
| EXPOSE 7860 | |
| # Run Grid-Gent using your existing entrypoint. | |
| # main.py reads GRID_GENT_PORT and passes it to run_server(...) | |
| CMD ["sh", "-c", "GRID_GENT_PORT=${PORT:-7860} python main.py"] | |