Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
7b821bd
1
Parent(s):
bfc708f
debug
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -28,12 +28,13 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
|
|
28 |
# Set Python 3.11 as the default python version
|
29 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
|
30 |
RUN update-alternatives --set python3 /usr/bin/python3.11
|
31 |
-
|
32 |
-
|
|
|
33 |
|
34 |
# Set up environment variables
|
35 |
ENV LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
|
36 |
-
ENV PATH="/app:/app/text2vec-transformers:/app/text2vec-transformers/bin:/usr/local/bin:$PATH"
|
37 |
|
38 |
# Upgrade pip to support --break-system-packages.
|
39 |
RUN python3 -m pip install --upgrade pip
|
|
|
28 |
# Set Python 3.11 as the default python version
|
29 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
|
30 |
RUN update-alternatives --set python3 /usr/bin/python3.11
|
31 |
+
|
32 |
+
# Create softlink so that text2vec-transformer can invoke python3 when using /usr/local/bin/python.
|
33 |
+
RUN ln -s /usr/bin/python3.11 /usr/local/bin/python
|
34 |
|
35 |
# Set up environment variables
|
36 |
ENV LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
|
37 |
+
ENV PATH="/app:/app/text2vec-transformers:/app/text2vec-transformers/bin:/usr/local/bin:/usr/bin:$PATH"
|
38 |
|
39 |
# Upgrade pip to support --break-system-packages.
|
40 |
RUN python3 -m pip install --upgrade pip
|