Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -88,6 +88,7 @@ COPY --chown=1000 . ${APPDIR}
|
|
88 |
ENV PYTHONPATH=${HOME}/.local/bin:${PYTHONPATH}
|
89 |
RUN python -m pip install --no-cache-dir -U pip setuptools wheel
|
90 |
RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
|
|
|
91 |
# RUN deactivate
|
92 |
# RUN go install golang.org/x/tools/gopls@latest
|
93 |
# RUN git clone https://github.com/ollama/ollama
|
@@ -117,10 +118,12 @@ ENV PYTHONUNBUFFERED=1 \
|
|
117 |
NVIDIA_VISIBLE_DEVICES=all \
|
118 |
OLLAMA_HOST=0.0.0.0
|
119 |
|
120 |
-
|
121 |
# EXPOSE map[11434/tcp:{}]
|
122 |
-
# RUN systemctl start ollama & sleep 5
|
123 |
# RUN . .venv/bin/activate
|
124 |
# RUN python app.py
|
|
|
125 |
ENTRYPOINT ["/lib/systemd/systemd"]
|
|
|
|
|
126 |
RUN python app.py
|
|
|
88 |
ENV PYTHONPATH=${HOME}/.local/bin:${PYTHONPATH}
|
89 |
RUN python -m pip install --no-cache-dir -U pip setuptools wheel
|
90 |
RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
|
91 |
+
|
92 |
# RUN deactivate
|
93 |
# RUN go install golang.org/x/tools/gopls@latest
|
94 |
# RUN git clone https://github.com/ollama/ollama
|
|
|
118 |
NVIDIA_VISIBLE_DEVICES=all \
|
119 |
OLLAMA_HOST=0.0.0.0
|
120 |
|
121 |
+
|
122 |
# EXPOSE map[11434/tcp:{}]
|
|
|
123 |
# RUN . .venv/bin/activate
|
124 |
# RUN python app.py
|
125 |
+
|
126 |
ENTRYPOINT ["/lib/systemd/systemd"]
|
127 |
+
RUN systemctl start ollama & sleep 5
|
128 |
+
WORKDIR ${APPDIR}
|
129 |
RUN python app.py
|