Spaces:
Sleeping
Sleeping
# Use the official Qdrant image as a base | |
FROM qdrant/qdrant:latest | |
# Set environment variables | |
ENV QDRANT_CONFIG_PATH=/qdrant/config/production.yaml | |
# Create necessary directories and set permissions | |
USER root | |
RUN mkdir -p /data/storage /data/snapshots && \ | |
chown -R 1000:1000 /data | |
# Copy the custom config file | |
COPY config.yaml /qdrant/config/production.yaml | |
# Expose the necessary ports | |
EXPOSE 6333 6334 | |
# Switch to non-root user | |
USER 1000 | |
# Set the working directory | |
WORKDIR /qdrant | |
# Use the entrypoint script to start Qdrant | |
ENTRYPOINT ["./entrypoint.sh"] |