Merge pull request #49 from blebo/dockerfile-args

Dockerfile ARGs to make it easier to use latest IPEX-LLM Ollama Portable Zip
This commit is contained in:
Matt Curfman
2025-03-17 09:24:39 -07:00
committed by GitHub
3 changed files with 26 additions and 3 deletions
+7 -3
View File
@@ -2,6 +2,7 @@ FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=america/los_angeles ENV TZ=america/los_angeles
# Base packages # Base packages
RUN apt update && \ RUN apt update && \
apt install --no-install-recommends -q -y \ apt install --no-install-recommends -q -y \
@@ -22,10 +23,13 @@ RUN mkdir -p /tmp/gpu && \
dpkg -i *.deb && \ dpkg -i *.deb && \
rm *.deb rm *.deb
# Install Ollama Portable Zip # Install Ollama Portable Zip (with cached default)
ARG IPEXLLM_RELEASE_REPO=mattcurf/ollama-intel-gpu
ARG IPEXLLM_RELEASE_VERSON=v0.0.1
ARG IPEXLLM_PORTABLE_ZIP_FILENAME=ollama-0.5.4-ipex-llm-2.2.0b20250220-ubuntu.tgz
RUN cd / && \ RUN cd / && \
wget https://github.com/mattcurf/ollama-intel-gpu/releases/download/v0.0.1/ollama-0.5.4-ipex-llm-2.2.0b20250220-ubuntu.tgz && \ wget https://github.com/${IPEXLLM_RELEASE_REPO}/releases/download/${IPEXLLM_RELEASE_VERSON}/${IPEXLLM_PORTABLE_ZIP_FILENAME} && \
tar xvf ollama-0.5.4-ipex-llm-2.2.0b20250220-ubuntu.tgz --strip-components=1 -C / tar xvf ${IPEXLLM_PORTABLE_ZIP_FILENAME} --strip-components=1 -C /
ENV OLLAMA_HOST=0.0.0.0:11434 ENV OLLAMA_HOST=0.0.0.0:11434
+15
View File
@@ -29,6 +29,21 @@ $ docker compose up
Then launch your web browser to http://localhost:3000 to launch the web ui. Create a local OpenWeb UI credential, then click the settings icon in the top right of the screen, then select 'Models', then click 'Show', then download a model like 'llama3.1:8b-instruct-q8_0' for Intel ARC A770 16GB VRAM Then launch your web browser to http://localhost:3000 to launch the web ui. Create a local OpenWeb UI credential, then click the settings icon in the top right of the screen, then select 'Models', then click 'Show', then download a model like 'llama3.1:8b-instruct-q8_0' for Intel ARC A770 16GB VRAM
## Update to the latest IPEX-LLM Portable Zip Version
To update to the latest portable zip version of IPEX-LLM's Ollama, update the compose file with the build arguments shown below, using the latest `ollama-*.tgz` release from https://github.com/intel/ipex-llm/releases/tag/v2.2.0-nightly , then rebuild the image.
```yaml
ollama-intel-gpu:
build:
context: .
dockerfile: Dockerfile
args:
IPEXLLM_RELEASE_REPO: intel/ipex-llm
IPEXLLM_RELEASE_VERSON: v2.2.0-nightly
IPEXLLM_PORTABLE_ZIP_FILENAME: ollama-ipex-llm-2.2.0b20250313-ubuntu.tgz
```
# References # References
* https://dgpu-docs.intel.com/driver/client/overview.html * https://dgpu-docs.intel.com/driver/client/overview.html
* https://github.com/intel/ipex-llm/blob/main/docs/mddocs/Quickstart/ollama_portablze_zip_quickstart.md * https://github.com/intel/ipex-llm/blob/main/docs/mddocs/Quickstart/ollama_portablze_zip_quickstart.md
+4
View File
@@ -3,6 +3,10 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
args:
IPEXLLM_RELEASE_REPO: mattcurf/ollama-intel-gpu
IPEXLLM_RELEASE_VERSON: v0.0.1
IPEXLLM_PORTABLE_ZIP_FILENAME: ollama-0.5.4-ipex-llm-2.2.0b20250220-ubuntu.tgz
container_name: ollama-intel-gpu container_name: ollama-intel-gpu
restart: always restart: always
devices: devices: