davanstrien HF staff commited on
Commit
d97ea6b
1 Parent(s): 282af04

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -3,13 +3,14 @@ FROM qdrant/qdrant:latest
3
 
4
  # Set environment variables
5
  ENV QDRANT_CONFIG_PATH=/qdrant/config/production.yaml
 
6
 
7
  # Create necessary directories and set permissions
8
  USER root
9
  RUN mkdir -p /qdrant/storage /qdrant/snapshots && \
10
  chown -R 1000:1000 /qdrant
11
 
12
- # Create a custom config file
13
  COPY config.yaml /qdrant/config/production.yaml
14
 
15
  # Switch back to the non-root user
 
3
 
4
  # Set environment variables
5
  ENV QDRANT_CONFIG_PATH=/qdrant/config/production.yaml
6
+ ENV QDRANT__SERVICE__API_KEY=${QDRANT_API_KEY}
7
 
8
  # Create necessary directories and set permissions
9
  USER root
10
  RUN mkdir -p /qdrant/storage /qdrant/snapshots && \
11
  chown -R 1000:1000 /qdrant
12
 
13
+ # Copy the custom config file
14
  COPY config.yaml /qdrant/config/production.yaml
15
 
16
  # Switch back to the non-root user