File size: 362 Bytes
458fa79
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"]