pentagent-qdrant / Dockerfile
meryemarpaci's picture
Update Dockerfile
1255b25 verified
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"]