Spaces:
Sleeping
Sleeping
Oleg Shulyakov
commited on
Commit
·
f3a3278
1
Parent(s):
99ea333
Fix library not found
Browse files- Dockerfile +10 -7
Dockerfile
CHANGED
|
@@ -6,13 +6,7 @@ USER 1000
|
|
| 6 |
|
| 7 |
ENV HOME=/home/user \
|
| 8 |
PATH=${PATH}:/home/user/.local/bin \
|
| 9 |
-
PATH=${PATH}:/app
|
| 10 |
-
HF_HUB_ENABLE_HF_TRANSFER=1 \
|
| 11 |
-
GRADIO_ALLOW_FLAGGING=never \
|
| 12 |
-
GRADIO_NUM_PORTS=1 \
|
| 13 |
-
GRADIO_SERVER_NAME=0.0.0.0 \
|
| 14 |
-
GRADIO_THEME=huggingface \
|
| 15 |
-
SYSTEM=spaces
|
| 16 |
|
| 17 |
WORKDIR ${HOME}/app
|
| 18 |
|
|
@@ -20,4 +14,13 @@ COPY --chown=1000 . ${HOME}/app
|
|
| 20 |
|
| 21 |
RUN pip install -r requirements.txt
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
ENTRYPOINT ["/bin/bash", "start.sh"]
|
|
|
|
| 6 |
|
| 7 |
ENV HOME=/home/user \
|
| 8 |
PATH=${PATH}:/home/user/.local/bin \
|
| 9 |
+
PATH=${PATH}:/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
WORKDIR ${HOME}/app
|
| 12 |
|
|
|
|
| 14 |
|
| 15 |
RUN pip install -r requirements.txt
|
| 16 |
|
| 17 |
+
ENV PYTHONPATH=${PYTHONPATH}:/home/user/.local/bin \
|
| 18 |
+
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/app \
|
| 19 |
+
HF_HUB_ENABLE_HF_TRANSFER=1 \
|
| 20 |
+
GRADIO_ALLOW_FLAGGING=never \
|
| 21 |
+
GRADIO_NUM_PORTS=1 \
|
| 22 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
| 23 |
+
GRADIO_THEME=huggingface \
|
| 24 |
+
SYSTEM=spaces
|
| 25 |
+
|
| 26 |
ENTRYPOINT ["/bin/bash", "start.sh"]
|