# Base image: kkqy/aktools FROM kkqy/aktools:latest # Install git (required by Hugging Face Spaces) USER root RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # 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}"]