MVPilgrim commited on
Commit
1a04247
·
verified ·
1 Parent(s): 76035d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -2
Dockerfile CHANGED
@@ -41,7 +41,7 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.4.22 && \
41
  ###############################################################################
42
  # Weaviate (no differentiation between dev/test/prod - 12 factor!)
43
  FROM alpine AS weaviate
44
- ENTRYPOINT ["/bin/weaviate"]
45
  COPY --from=grpc_health_probe_builder /bin/grpc_health_probe /bin/
46
  COPY --from=server_builder /weaviate-server /bin/weaviate
47
  RUN apk add --no-cache --upgrade ca-certificates openssl
@@ -51,4 +51,24 @@ RUN chmod -R 777 /var
51
  ENV AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED true
52
  ENV PERSISTENCE_DATA_PATH /var/lib/weaviate/data
53
  ENV ENABLE_MODULES text3vec-transformers
54
- CMD [ "--host", "0.0.0.0", "--port", "8080", "--scheme", "http", ""]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  ###############################################################################
42
  # Weaviate (no differentiation between dev/test/prod - 12 factor!)
43
  FROM alpine AS weaviate
44
+ #ENTRYPOINT ["/bin/weaviate"]
45
  COPY --from=grpc_health_probe_builder /bin/grpc_health_probe /bin/
46
  COPY --from=server_builder /weaviate-server /bin/weaviate
47
  RUN apk add --no-cache --upgrade ca-certificates openssl
 
51
  ENV AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED true
52
  ENV PERSISTENCE_DATA_PATH /var/lib/weaviate/data
53
  ENV ENABLE_MODULES text3vec-transformers
54
+ #CMD [ "--host", "0.0.0.0", "--port", "8080", "--scheme", "http", ""]
55
+
56
+ ###############################################################################
57
+ # python environment and app.
58
+ FROM python:3.11.5
59
+ RUN apt update
60
+ WORKDIR /app
61
+
62
+ COPY ./requirements.txt /app/requirements.txt
63
+ COPY ./app.py /app/app.py
64
+ RUN mkdir -p /app/inputDocs
65
+ COPY ./inputDocs/* /app/inputDocs
66
+
67
+ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
68
+ RUN pip install https://files.pythonhosted.org/packages/13/87/e0cb08c2d4bd7d38ab63816b306c8b1e7cfdc0e59bd54462e8b0df069078/semantic_text_splitter-0.6.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
69
+ RUN pip show semantic-text-splitter
70
+ RUN useradd -m -u 1000 user
71
+
72
+ ##############################################################################
73
+ # Start the weaviate vector database and the semantic search app.
74
+ RUN ./startup.sh