Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -4,6 +4,14 @@ FROM qdrant/qdrant:latest
|
|
| 4 |
# Set environment variables
|
| 5 |
ENV QDRANT_CONFIG_PATH=/qdrant/config/production.yaml
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Expose the necessary ports
|
| 8 |
EXPOSE 6333 6334
|
| 9 |
|
|
@@ -12,5 +20,3 @@ WORKDIR /qdrant
|
|
| 12 |
|
| 13 |
# Use the entrypoint script to start Qdrant
|
| 14 |
ENTRYPOINT ["./entrypoint.sh"]
|
| 15 |
-
|
| 16 |
-
# Remove the CMD instruction as the entrypoint script already starts Qdrant
|
|
|
|
| 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 |
+
# Switch back to the non-root user
|
| 13 |
+
USER 1000
|
| 14 |
+
|
| 15 |
# Expose the necessary ports
|
| 16 |
EXPOSE 6333 6334
|
| 17 |
|
|
|
|
| 20 |
|
| 21 |
# Use the entrypoint script to start Qdrant
|
| 22 |
ENTRYPOINT ["./entrypoint.sh"]
|
|
|
|
|
|