qdrant / Dockerfile
quocanuit's picture
upd
d41f95d
Raw History Blame Contribute Delete
747 Bytes
FROM qdrant/qdrant:latest
# Create all required directories with proper permissions
RUN mkdir -p /qdrant/config /qdrant/storage /qdrant/snapshots/tmp && \
chmod -R 777 /qdrant/storage /qdrant/snapshots /qdrant/config
# Create a configuration file with all necessary paths explicitly defined
RUN echo '{ \
"service": { \
"http_port": 7860, \
"host": "0.0.0.0" \
}, \
"storage": { \
"storage_path": "/qdrant/storage", \
"snapshots_path": "/qdrant/snapshots" \
} \
}' > /qdrant/config/config.yaml
# Set working directory
WORKDIR /qdrant
# Expose both the default Qdrant port and Hugging Face port
EXPOSE 6333 7860
# Start with custom config
CMD ["/qdrant/entrypoint.sh", "--config-path", "/qdrant/config/config.yaml"]