Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -6,8 +6,8 @@ ENV QDRANT_CONFIG_PATH=/qdrant/config/production.yaml
|
|
| 6 |
|
| 7 |
# Create necessary directories and set permissions
|
| 8 |
USER root
|
| 9 |
-
RUN mkdir -p /
|
| 10 |
-
chown -R 1000:1000 /
|
| 11 |
|
| 12 |
# Copy the custom config file
|
| 13 |
COPY config.yaml /qdrant/config/production.yaml
|
|
@@ -15,7 +15,6 @@ COPY config.yaml /qdrant/config/production.yaml
|
|
| 15 |
# Mount the secret and set it as an environment variable
|
| 16 |
RUN --mount=type=secret,id=QDRANT_API_KEY,mode=0444,required=true \
|
| 17 |
export QDRANT__SERVICE__API_KEY=$(cat /run/secrets/QDRANT_API_KEY) && \
|
| 18 |
-
# Persist the API key in a file that can be sourced later
|
| 19 |
echo "export QDRANT__SERVICE__API_KEY=$QDRANT__SERVICE__API_KEY" > /qdrant/api_key.sh && \
|
| 20 |
chmod +x /qdrant/api_key.sh
|
| 21 |
|
|
|
|
| 6 |
|
| 7 |
# Create necessary directories and set permissions
|
| 8 |
USER root
|
| 9 |
+
RUN mkdir -p /data/storage /data/snapshots && \
|
| 10 |
+
chown -R 1000:1000 /data
|
| 11 |
|
| 12 |
# Copy the custom config file
|
| 13 |
COPY config.yaml /qdrant/config/production.yaml
|
|
|
|
| 15 |
# Mount the secret and set it as an environment variable
|
| 16 |
RUN --mount=type=secret,id=QDRANT_API_KEY,mode=0444,required=true \
|
| 17 |
export QDRANT__SERVICE__API_KEY=$(cat /run/secrets/QDRANT_API_KEY) && \
|
|
|
|
| 18 |
echo "export QDRANT__SERVICE__API_KEY=$QDRANT__SERVICE__API_KEY" > /qdrant/api_key.sh && \
|
| 19 |
chmod +x /qdrant/api_key.sh
|
| 20 |
|