Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
15618c1
1
Parent(s):
809c4be
debug
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -27,7 +27,11 @@ 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 |
# Upgrade pip to support --break-system-packages.
|
32 |
RUN python -m pip install --upgrade pip
|
33 |
|
@@ -80,10 +84,6 @@ USER user
|
|
80 |
#RUN python3 --version && \
|
81 |
# ldd --version | grep musl
|
82 |
|
83 |
-
# Set up environment variables
|
84 |
-
ENV LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
|
85 |
-
ENV PATH="/app:/app/text2vec-transformers:/app/text2vec-transformers/bin:/usr/local/bin:$PATH"
|
86 |
-
|
87 |
EXPOSE 8080 8501
|
88 |
|
89 |
CMD ["streamlit", "run", "/app/app.py", "--server.headless", "true", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--server.fileWatcherType", "none"]
|
|
|
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 |
|
|
|
84 |
#RUN python3 --version && \
|
85 |
# ldd --version | grep musl
|
86 |
|
|
|
|
|
|
|
|
|
87 |
EXPOSE 8080 8501
|
88 |
|
89 |
CMD ["streamlit", "run", "/app/app.py", "--server.headless", "true", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--server.fileWatcherType", "none"]
|