token from ENV
Browse files- Dockerfile +1 -6
Dockerfile
CHANGED
|
@@ -6,12 +6,6 @@ RUN apt-get update \
|
|
| 6 |
&& apt-get clean
|
| 7 |
|
| 8 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 9 |
-
# RUN ollama serve & \
|
| 10 |
-
# sleep 2 && \
|
| 11 |
-
# until curl -s http://localhost:11434/api/tags > /dev/null; do echo "Waiting for Ollama..."; sleep 2; done && \
|
| 12 |
-
# ollama pull codegemma:2b && \
|
| 13 |
-
# pkill -f "ollama serve"
|
| 14 |
-
|
| 15 |
RUN useradd -m -u 1000 user
|
| 16 |
USER user
|
| 17 |
|
|
@@ -29,6 +23,7 @@ RUN pup list
|
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
# https://huggingface.co/spaces/SpacesExamples/jupyterlab/blob/main/start_server.sh
|
|
|
|
| 32 |
CMD pixi run jupyter-lab \
|
| 33 |
--ip 0.0.0.0 \
|
| 34 |
--port 7860 \
|
|
|
|
| 6 |
&& apt-get clean
|
| 7 |
|
| 8 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
RUN useradd -m -u 1000 user
|
| 10 |
USER user
|
| 11 |
|
|
|
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
# https://huggingface.co/spaces/SpacesExamples/jupyterlab/blob/main/start_server.sh
|
| 26 |
+
ENV JUPYTER_TOKEN=woof
|
| 27 |
CMD pixi run jupyter-lab \
|
| 28 |
--ip 0.0.0.0 \
|
| 29 |
--port 7860 \
|