File size: 416 Bytes
9ac02b0
 
 
 
 
 
 
 
 
 
 
 
 
 
65ea47f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Fallback Dockerfile: Build from scratch if China registry is unreachable
FROM python:3.10-slim

# Install aktools
RUN pip install --no-cache-dir aktools==1.8.95

# Hugging Face Spaces injects PORT env var (default 7860)
ENV PORT=7860

# Expose the port for documentation
EXPOSE 7860

# Start aktools binding to 0.0.0.0 and the PORT env variable
CMD ["sh", "-c", "python -m aktools --host 0.0.0.0 --port ${PORT}"]