Spaces:
Sleeping
Sleeping
File size: 748 Bytes
456faf1 1255b25 456faf1 1255b25 456faf1 8ca60b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | FROM qdrant/qdrant:latest
# Storage backup'ı container'a kopyala
COPY qdrant-storage.tar.gz /tmp/
# Storage'ı restore et ve tüm gerekli dizinlere izin ver
RUN tar xzf /tmp/qdrant-storage.tar.gz -C / && \
rm /tmp/qdrant-storage.tar.gz && \
chmod -R 777 /qdrant && \
mkdir -p /snapshots/tmp && \
chmod -R 777 /snapshots
# HuggingFace Spaces default port: 7860
ENV QDRANT__SERVICE__HTTP_PORT=7860
ENV QDRANT__SERVICE__GRPC_PORT=6334
ENV QDRANT__LOG_LEVEL=INFO
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:7860/health || exit 1
# Expose HuggingFace port
EXPOSE 7860 6334
# Persistent storage
VOLUME ["/qdrant/storage"]
# Start Qdrant
CMD ["./qdrant"]
|