d221 commited on
Commit
0dd20bf
·
verified ·
1 Parent(s): 9554ed4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,11 +1,15 @@
1
- FROM python:3.9-slim
 
2
 
 
 
 
3
 
4
- # Use official Qdrant image
5
- FROM qdrant/qdrant:v1.6.1
6
 
7
  # Expose Hugging Face's mandatory port
8
  EXPOSE 7860
9
 
10
- # Override default port (6333 → 7860)
11
- CMD ["--uri", "http://0.0.0.0:7860"]
 
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;'"]