Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
# Use the official Qdrant Docker image | |
FROM qdrant/qdrant:v1.15.3 | |
# The Qdrant container expects its data to be stored in /qdrant/storage | |
# When persistent storage is enabled on Hugging Face Spaces, | |
# the /data directory is mounted as a persistent volume. | |
# We need to tell Qdrant to use a path within /data for its storage. | |
# We'll do this by setting an environment variable that Qdrant recognizes. | |
ENV QDRANT__STORAGE__STORAGE_PATH="/data/qdrant_data" | |
ENV QDRANT__STORAGE__SNAPSHOTS_PATH="/data/qdrant_snapshots" | |
# Expose the default Qdrant ports (HTTP/REST and gRPC) | |
EXPOSE 6333 | |
EXPOSE 6334 | |