File size: 573 Bytes
0899f0b
e95e8a7
0899f0b
 
8bd8a4c
0899f0b
c673521
 
7d29877
 
c673521
d97ea6b
85f8dd8
 
0899f0b
 
 
bf02a4c
 
 
8bd8a4c
 
0899f0b
bf02a4c
 
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
# 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"]