Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +9 -5
Dockerfile
CHANGED
|
@@ -1,11 +1,15 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
|
| 6 |
|
| 7 |
# Expose Hugging Face's mandatory port
|
| 8 |
EXPOSE 7860
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
CMD ["-
|
|
|
|
| 1 |
+
# Use the official Qdrant image
|
| 2 |
+
FROM qdrant/qdrant:v1.6.1
|
| 3 |
|
| 4 |
+
# Install Nginx as a reverse proxy
|
| 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 |
|
| 11 |
# Expose Hugging Face's mandatory port
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
+
# Start both Qdrant and Nginx
|
| 15 |
+
CMD ["sh", "-c", "/qdrant & nginx -g 'daemon off;'"]
|