Spaces:
Sleeping
Sleeping
File size: 440 Bytes
2bb6c31 9ac02b0 d1a652d 9ac02b0 a04339d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# 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}"]
|