MVPilgrim commited on
Commit
e6f73c6
·
verified ·
1 Parent(s): 0e8a59e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -56,15 +56,19 @@ ENV ENABLE_MODULES text3vec-transformers
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 ./semsearch.py /app/semsearch.py
64
  COPY ./startup.sh /app/startup.sh
65
- RUN chmod 755 /app/startup.sh
 
 
 
66
  RUN mkdir -p /app/inputDocs
67
- COPY ./inputDocs/* /app/inputDocs
68
 
69
  RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
70
  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
@@ -73,4 +77,5 @@ RUN useradd -m -u 1000 user
73
 
74
  ##############################################################################
75
  # Start the weaviate vector database and the semantic search app.
76
- RUN /app/startup.sh
 
 
56
  ###############################################################################
57
  # python environment and app.
58
  FROM python:3.11.5
59
+ ENTRYPOINT ["/app/startup.sh"]
60
  RUN apt update
61
  WORKDIR /app
62
 
63
  COPY ./requirements.txt /app/requirements.txt
64
  COPY ./semsearch.py /app/semsearch.py
65
  COPY ./startup.sh /app/startup.sh
66
+ RUN chmod 755 /app/startup.sh
67
+ COPY ./bin/weaviate /app/weaviate
68
+ RUN chmod 755 /app/weaviate
69
+
70
  RUN mkdir -p /app/inputDocs
71
+ COPY ./inputDocs/* /app/inputDocs
72
 
73
  RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
74
  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
 
77
 
78
  ##############################################################################
79
  # Start the weaviate vector database and the semantic search app.
80
+ #RUN /app/startup.sh
81
+ CMD []