Skip to content

Commit f3286e4

Browse files
committed
hack: expose UBUNTUVERSION in env.sh and update doc (#27)
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 18f9fe8 commit f3286e4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

scripts/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ PLATFORM=linux/amd64 DOCKER_ORG=mthreads FLAVORS=vulkan ./scripts/build_docker.s
1010
PLATFORM=linux/arm64 DOCKER_ORG=mthreads FLAVORS=vulkan ./scripts/build_docker.sh
1111
```
1212

13+
> *📝 The `UBUNTUVERSION` build argument specifies the Ubuntu version (e.g., `22.04`, `23.04`, `24.04`, `25.04`) used as the base image for Docker containers. This argument is only applicable when building images with the `vulkan` flavor.*
14+
1315
After running the build commands, Docker images will be created with tags in the following format:
1416

1517
```bash

scripts/env.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ PLATFORM=${PLATFORM:-"linux/arm64,linux/amd64"}
77
FLAVORS=${FLAVORS:-"musa"}
88
DOCKER_ORG=${DOCKER_ORG:-"ollama"}
99
FINAL_IMAGE_REPO=${FINAL_IMAGE_REPO:-"${DOCKER_ORG}/ollama"}
10+
UBUNTUVERSION=${UBUNTUVERSION:-"22.04"}
1011
OLLAMA_COMMON_BUILD_ARGS="--build-arg=VERSION \
12+
--build-arg=UBUNTUVERSION \
1113
--build-arg=GOFLAGS \
1214
--build-arg=OLLAMA_CUSTOM_CPU_DEFS \
1315
--build-arg=OLLAMA_SKIP_CUDA_GENERATE \
@@ -21,5 +23,6 @@ OLLAMA_COMMON_BUILD_ARGS="--build-arg=VERSION \
2123

2224
echo "Building Ollama"
2325
echo "VERSION=$VERSION"
26+
echo "UBUNTUVERSION=$UBUNTUVERSION"
2427
echo "PLATFORM=$PLATFORM"
2528
echo "FLAVORS=$FLAVORS"

0 commit comments

Comments
 (0)