File size: 346 Bytes
bb3a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
160df9d
bb3a1e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-slim

# Optional: install system packages your agent needs
WORKDIR /app

# Install Python deps first (better layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of your code
COPY . .

# Start the server. HF injects $PORT; our main.py reads it.
CMD ["python", "main.py"]
:x