# Use Hugging Face chat-ui-db image FROM ghcr.io/huggingface/chat-ui-db:latest # Spaces require the app to listen on port 7860 ENV PORT=7860 ENV HF_TOKEN="" # Mount /data for persistence VOLUME ["/data"] # Expose the port Spaces expects EXPOSE 7860 # ✅ Do NOT override CMD — let the base image handle startup