ak / Dockerfile
solitudeLin's picture
Add git dependency for HF Spaces
d1a652d
raw
history blame contribute delete
440 Bytes
# 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}"]