Spaces:
Sleeping
Sleeping
FROM cr.weaviate.io/semitechnologies/weaviate:1.30.0 | |
# Install nginx using Alpine's package manager | |
RUN apk update && \ | |
apk add --no-cache nginx | |
# Set Weaviate env variables | |
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 the one port HuggingFace Spaces allows | |
EXPOSE 7860 | |
# Start both Weaviate and NGINX | |
# CMD ["sh", "-c", "\ | |
# /bin/weaviate --host 127.0.0.1 --port 7860 --scheme http & \ | |
# nginx -g 'daemon off;'"] | |
CMD ["--host", "0.0.0.0", "--port", "7860", "--scheme", "http"] | |
# CMD ["nginx", "-g", "daemon off;"] |