wjbmattingly commited on
Commit
bd56ae5
·
verified ·
1 Parent(s): 6ab6872

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,12 +1,10 @@
1
- # Base image with Weaviate
2
  FROM cr.weaviate.io/semitechnologies/weaviate:1.30.0
3
 
4
- # Install nginx with grpc support
5
- RUN apt-get update && \
6
- apt-get install -y nginx && \
7
- apt-get clean
8
 
9
- # Weaviate config
10
  ENV QUERY_DEFAULTS_LIMIT=25 \
11
  AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
12
  PERSISTENCE_DATA_PATH=/var/lib/weaviate \
@@ -20,10 +18,10 @@ VOLUME ["/var/lib/weaviate"]
20
  # Add NGINX config
21
  COPY nginx.conf /etc/nginx/nginx.conf
22
 
23
- # Expose only 7860 (used by nginx)
24
  EXPOSE 7860
25
 
26
- # Start script
27
  CMD ["sh", "-c", "\
28
  /bin/weaviate --host 127.0.0.1 --port 7860 --scheme http & \
29
- nginx -g 'daemon off;'"]
 
 
1
  FROM cr.weaviate.io/semitechnologies/weaviate:1.30.0
2
 
3
+ # Install nginx using Alpine's package manager
4
+ RUN apk update && \
5
+ apk add --no-cache nginx
 
6
 
7
+ # Set Weaviate env variables
8
  ENV QUERY_DEFAULTS_LIMIT=25 \
9
  AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
10
  PERSISTENCE_DATA_PATH=/var/lib/weaviate \
 
18
  # Add NGINX config
19
  COPY nginx.conf /etc/nginx/nginx.conf
20
 
21
+ # Expose only the one port HuggingFace Spaces allows
22
  EXPOSE 7860
23
 
24
+ # Start both Weaviate and NGINX
25
  CMD ["sh", "-c", "\
26
  /bin/weaviate --host 127.0.0.1 --port 7860 --scheme http & \
27
+ nginx -g 'daemon off;'"]