-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dockerfile. Need to get local host working in Ollama
- Loading branch information
1 parent
4745d3f
commit 73d9959
Showing
3 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ubuntu:18.04 | ||
|
||
WORKDIR /tmp | ||
|
||
COPY ./entrypoint.sh /tmp/entrypoint.sh | ||
|
||
EXPOSE 11434 | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y curl wget nano vim | ||
RUN curl -fsSL https://ollama.com/install.sh | sh | ||
RUN chmod +x entrypoint.sh | ||
|
||
CMD ["bash"] | ||
|
||
|
||
## USE THIS TO BOOT IN BASH " docker run -it --rm -p 11434:11434 tp_llm " | ||
##docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
ollama serve | ||
sleep 5 | ||
ollama run qwen:0.5b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters