MVPilgrim commited on
Commit
c73cd7c
·
1 Parent(s): 15618c1
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -27,13 +27,15 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
27
  # Set Python 3.11 as the default python version
28
  RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
29
  RUN update-alternatives --set python3 /usr/bin/python3.11
 
 
30
 
31
  # Set up environment variables
32
  ENV LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
33
  ENV PATH="/app:/app/text2vec-transformers:/app/text2vec-transformers/bin:/usr/local/bin:$PATH"
34
 
35
  # Upgrade pip to support --break-system-packages.
36
- RUN python -m pip install --upgrade pip
37
 
38
  # Install requirements packages, semantic text splitter, llama_cpp.
39
  COPY ./requirements.txt /app/requirements.txt
@@ -49,9 +51,8 @@ COPY --from=semitechnologies/transformers-inference:sentence-transformers-multi-
49
  COPY ./multi-qa-MiniLM-L6-cos-v1 /app/text2vec-transformers
50
  RUN ./custom_prerequisites.py
51
 
52
- WORKDIR /app
53
-
54
  # Copy application files
 
55
  COPY ./semsearch.py /app/semsearch.py
56
  COPY ./startup.sh /app/startup.sh
57
  COPY ./.streamlit/main.css /app/.streamlit/main.css
@@ -81,8 +82,8 @@ RUN chmod -R 755 /app
81
  USER user
82
 
83
  # Verify Python and musl installations
84
- #RUN python3 --version && \
85
- # ldd --version | grep musl
86
 
87
  EXPOSE 8080 8501
88
 
 
27
  # Set Python 3.11 as the default python version
28
  RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
29
  RUN update-alternatives --set python3 /usr/bin/python3.11
30
+ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
31
+ RUN update-alternatives --set python3 /usr/bin/python3.11
32
 
33
  # Set up environment variables
34
  ENV LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
35
  ENV PATH="/app:/app/text2vec-transformers:/app/text2vec-transformers/bin:/usr/local/bin:$PATH"
36
 
37
  # Upgrade pip to support --break-system-packages.
38
+ RUN python3 -m pip install --upgrade pip
39
 
40
  # Install requirements packages, semantic text splitter, llama_cpp.
41
  COPY ./requirements.txt /app/requirements.txt
 
51
  COPY ./multi-qa-MiniLM-L6-cos-v1 /app/text2vec-transformers
52
  RUN ./custom_prerequisites.py
53
 
 
 
54
  # Copy application files
55
+ WORKDIR /app
56
  COPY ./semsearch.py /app/semsearch.py
57
  COPY ./startup.sh /app/startup.sh
58
  COPY ./.streamlit/main.css /app/.streamlit/main.css
 
82
  USER user
83
 
84
  # Verify Python and musl installations
85
+ RUN python3 --version && \
86
+ ldd --version | grep musl
87
 
88
  EXPOSE 8080 8501
89