Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +10 -2
Dockerfile
CHANGED
|
@@ -1,10 +1,18 @@
|
|
| 1 |
# Use the official Qdrant image
|
| 2 |
FROM qdrant/qdrant:v1.6.1
|
| 3 |
|
| 4 |
-
#
|
| 5 |
USER root
|
|
|
|
|
|
|
| 6 |
RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
# Copy custom Nginx configuration
|
| 9 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 10 |
|
|
@@ -12,4 +20,4 @@ COPY nginx.conf /etc/nginx/nginx.conf
|
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
# Start both Qdrant and Nginx
|
| 15 |
-
CMD
|
|
|
|
| 1 |
# Use the official Qdrant image
|
| 2 |
FROM qdrant/qdrant:v1.6.1
|
| 3 |
|
| 4 |
+
# Switch to root user to avoid permission issues
|
| 5 |
USER root
|
| 6 |
+
|
| 7 |
+
# Install Nginx as a reverse proxy
|
| 8 |
RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# Ensure Qdrant is executable
|
| 11 |
+
RUN chmod +x /qdrant
|
| 12 |
+
|
| 13 |
+
# Fix permissions for Nginx temporary files
|
| 14 |
+
RUN mkdir -p /var/lib/nginx/body && chmod 777 /var/lib/nginx/body
|
| 15 |
+
|
| 16 |
# Copy custom Nginx configuration
|
| 17 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 18 |
|
|
|
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
# Start both Qdrant and Nginx
|
| 23 |
+
CMD /qdrant & nginx -g 'daemon off;'
|