# 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}"]