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