Skip to content

Commit

Permalink
fix llama3.2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Wang committed Oct 15, 2024
1 parent 1fbe01e commit 1f816e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ RUN case `uname -m` in \
s390x) ARCH=s390x; ;; \
*) echo "un-supported arch, exit ..."; exit 1; ;; \
esac && \
wget -O - https://ollama.com/download/ollama-linux-${ARCH}.tgz |tar -xz -C /usr/local/bin --strip-components=2 ./bin/ollama
wget -O - https://ollama.com/download/ollama-linux-${ARCH}.tgz | tar -xz --strip 2 ./bin/ollama && \
mv /ollama /usr/bin/ollama && \
chmod +x /usr/bin/ollama

ENV OLLAMA_HOST=0.0.0.0
EXPOSE 11434

ENTRYPOINT ["/usr/local/bin/ollama"]
ENTRYPOINT ["/usr/bin/ollama"]
CMD ["serve"]
8 changes: 5 additions & 3 deletions Dockerfile.llama3.2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ RUN case `uname -m` in \
s390x) ARCH=s390x; ;; \
*) echo "un-supported arch, exit ..."; exit 1; ;; \
esac && \
wget -O - https://ollama.com/download/ollama-linux-${ARCH}.tgz |tar -xz -C /usr/local/bin --strip-components=2 ./bin/ollama
wget -O - https://ollama.com/download/ollama-linux-${ARCH}.tgz | tar -xz --strip 2 ./bin/ollama && \
mv /ollama /usr/bin/ollama && \
chmod +x /usr/bin/ollama

RUN /usr/local/bin/ollama run llama3.2
RUN /usr/bin/ollama run llama3.2

ENV OLLAMA_HOST=0.0.0.0
EXPOSE 11434

ENTRYPOINT ["/usr/local/bin/ollama"]
ENTRYPOINT ["/usr/bin/ollama"]
CMD ["serve"]

0 comments on commit 1f816e5

Please sign in to comment.