Spaces:
Building
Building
File size: 745 Bytes
e081ebf 2d61ce2 e081ebf 72f5836 e081ebf 72f5836 e081ebf 2d61ce2 e081ebf 2d61ce2 e081ebf 2d61ce2 e081ebf cf8d4dd e081ebf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# Base image with Weaviate
FROM cr.weaviate.io/semitechnologies/weaviate:1.30.0
# Install nginx with grpc support
RUN apt-get update && \
apt-get install -y nginx && \
apt-get clean
# Weaviate config
ENV QUERY_DEFAULTS_LIMIT=25 \
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
PERSISTENCE_DATA_PATH=/var/lib/weaviate \
ENABLE_API_BASED_MODULES=true \
CLUSTER_HOSTNAME=node1
# Create data dir
RUN mkdir -p /var/lib/weaviate && chmod 777 /var/lib/weaviate
VOLUME ["/var/lib/weaviate"]
# Add NGINX config
COPY nginx.conf /etc/nginx/nginx.conf
# Expose only 7860 (used by nginx)
EXPOSE 7860
# Start script
CMD ["sh", "-c", "\
/bin/weaviate --host 127.0.0.1 --port 7860 --scheme http & \
nginx -g 'daemon off;'"] |