grid-gent / Dockerfile
James Afful
Add Grid-Gent Space code and Dockerfile (no binary assets)
458fa79
raw
history blame contribute delete
362 Bytes
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"]