Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -46,7 +46,7 @@ COPY --chown=1000 . ${APPDIR}
|
|
| 46 |
# pyenv global ${PYTHON_VERSION} && \
|
| 47 |
# pyenv rehash && \
|
| 48 |
|
| 49 |
-
RUN
|
| 50 |
RUN source .venv/bin/activate
|
| 51 |
RUN pip install --no-cache-dir -U pip setuptools wheel && \
|
| 52 |
pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
|
|
@@ -56,7 +56,7 @@ RUN git clone https://github.com/ollama/ollama
|
|
| 56 |
RUN git clone https://github.com/ggerganov/llama.cpp
|
| 57 |
COPY groups_merged.txt ${HOME}/app/llama.cpp/.
|
| 58 |
|
| 59 |
-
ENV PYTHONPATH=${APPDIR} \
|
| 60 |
PYTHONUNBUFFERED=1 \
|
| 61 |
HF_HUB_ENABLE_HF_TRANSFER=1 \
|
| 62 |
GRADIO_ALLOW_FLAGGING=never \
|
|
|
|
| 46 |
# pyenv global ${PYTHON_VERSION} && \
|
| 47 |
# pyenv rehash && \
|
| 48 |
|
| 49 |
+
RUN python3.10 -m venv .venv
|
| 50 |
RUN source .venv/bin/activate
|
| 51 |
RUN pip install --no-cache-dir -U pip setuptools wheel && \
|
| 52 |
pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
|
|
|
|
| 56 |
RUN git clone https://github.com/ggerganov/llama.cpp
|
| 57 |
COPY groups_merged.txt ${HOME}/app/llama.cpp/.
|
| 58 |
|
| 59 |
+
ENV PYTHONPATH=${APPDIR}/.venv/bin \
|
| 60 |
PYTHONUNBUFFERED=1 \
|
| 61 |
HF_HUB_ENABLE_HF_TRANSFER=1 \
|
| 62 |
GRADIO_ALLOW_FLAGGING=never \
|