weaviate-test2 / Dockerfile
wjm55
Refactor Dockerfile and Nginx configuration to streamline service management. Remove supervisord integration, update CMD to directly start Weaviate and Nginx, and enhance Nginx settings for improved HTTP and gRPC handling.
e081ebf
raw
history blame contribute delete
745 Bytes
# 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;'"]