Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add postBuild to the Dockerfile #5841

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deployments/dev/images/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,12 @@ RUN R -e "IRkernel::installspec(user = FALSE, prefix='${CONDA_DIR}')"

# clear out /tmp
USER root
COPY postBuild /tmp/postBuild
RUN chmod +x /tmp/postBuild
RUN /tmp/postBuild
RUN rm -rf /tmp/*


USER ${NB_USER}
WORKDIR /home/${NB_USER}

Expand Down
4 changes: 2 additions & 2 deletions deployments/dev/images/default/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ wget https://github.com/ollama/ollama/releases/download/v0.1.48/ollama-linux-amd
chmod +x /usr/local/bin/ollama

# Run the phi3:mini model with the specified data directory
/usr/local/bin/ollama run phi3:mini --data-dir $OLLAMA_DATA_DIR
# /usr/local/bin/ollama run phi3:mini --data-dir $OLLAMA_DATA_DIR

# Run the tinyllama model with the specified data directory
/usr/local/bin/ollama run tinyllama --data-dir $OLLAMA_DATA_DIR
# /usr/local/bin/ollama run tinyllama --data-dir $OLLAMA_DATA_DIR
Loading