Skip to content

Commit cfc2225

Browse files
authored
chore(dockerfile): drop driver-requirements section (#7907)
* chore(dockerfile): drop driver-requirements section Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(ci): drop other builds Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent fd53978 commit cfc2225

2 files changed

Lines changed: 6 additions & 72 deletions

File tree

.github/workflows/image-pr.yml

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -35,60 +35,13 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
include:
38-
- build-type: 'cublas'
39-
cuda-major-version: "12"
40-
cuda-minor-version: "9"
38+
- build-type: ''
39+
cuda-major-version: ""
40+
cuda-minor-version: ""
4141
platforms: 'linux/amd64'
4242
tag-latest: 'false'
43-
tag-suffix: '-gpu-nvidia-cuda-12'
43+
tag-suffix: ''
4444
runs-on: 'ubuntu-latest'
4545
base-image: "ubuntu:24.04"
4646
makeflags: "--jobs=3 --output-sync=target"
4747
ubuntu-version: '2404'
48-
- build-type: 'cublas'
49-
cuda-major-version: "13"
50-
cuda-minor-version: "0"
51-
platforms: 'linux/amd64'
52-
tag-latest: 'false'
53-
tag-suffix: '-gpu-nvidia-cuda-13'
54-
runs-on: 'ubuntu-latest'
55-
base-image: "ubuntu:22.04"
56-
makeflags: "--jobs=3 --output-sync=target"
57-
ubuntu-version: '2404'
58-
- build-type: 'hipblas'
59-
platforms: 'linux/amd64'
60-
tag-latest: 'false'
61-
tag-suffix: '-hipblas'
62-
base-image: "rocm/dev-ubuntu-24.04:6.4.4"
63-
grpc-base-image: "ubuntu:24.04"
64-
runs-on: 'ubuntu-latest'
65-
makeflags: "--jobs=3 --output-sync=target"
66-
ubuntu-version: '2404'
67-
- build-type: 'sycl'
68-
platforms: 'linux/amd64'
69-
tag-latest: 'false'
70-
base-image: "intel/oneapi-basekit:2025.3.0-0-devel-ubuntu24.04"
71-
grpc-base-image: "ubuntu:24.04"
72-
tag-suffix: 'sycl'
73-
runs-on: 'ubuntu-latest'
74-
makeflags: "--jobs=3 --output-sync=target"
75-
ubuntu-version: '2404'
76-
- build-type: 'vulkan'
77-
platforms: 'linux/amd64'
78-
tag-latest: 'false'
79-
tag-suffix: '-vulkan-core'
80-
runs-on: 'ubuntu-latest'
81-
base-image: "ubuntu:24.04"
82-
makeflags: "--jobs=4 --output-sync=target"
83-
ubuntu-version: '2404'
84-
- build-type: 'cublas'
85-
cuda-major-version: "13"
86-
cuda-minor-version: "0"
87-
platforms: 'linux/arm64'
88-
tag-latest: 'false'
89-
tag-suffix: '-nvidia-l4t-arm64-cuda-13'
90-
base-image: "ubuntu:24.04"
91-
runs-on: 'ubuntu-24.04-arm'
92-
makeflags: "--jobs=4 --output-sync=target"
93-
skip-drivers: 'false'
94-
ubuntu-version: '2404'

Dockerfile

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,11 @@ RUN apt-get update && \
1414
apt-get clean && \
1515
rm -rf /var/lib/apt/lists/*
1616

17-
# GPU drivers are no longer installed in the main image.
18-
# Each backend now packages its own GPU libraries (CUDA, ROCm, SYCL, Vulkan)
19-
# This allows for a unified base image that works with any backend.
20-
FROM requirements AS requirements-drivers
21-
22-
ARG BUILD_TYPE
23-
ARG CUDA_MAJOR_VERSION=12
24-
ARG CUDA_MINOR_VERSION=0
25-
ARG SKIP_DRIVERS=false
26-
ARG TARGETARCH
27-
ARG TARGETVARIANT
28-
ENV BUILD_TYPE=${BUILD_TYPE}
29-
ARG UBUNTU_VERSION=2404
30-
31-
RUN mkdir -p /run/localai
32-
RUN echo "default" > /run/localai/capability
33-
3417
###################################
3518
###################################
3619

3720
# The requirements-core target is common to all images. It should not be placed in requirements-core unless every single build will use it.
38-
FROM requirements-drivers AS build-requirements
21+
FROM requirements AS build-requirements
3922

4023
ARG GO_VERSION=1.25.4
4124
ARG CMAKE_VERSION=3.31.10
@@ -87,8 +70,6 @@ RUN echo "Target Architecture: $TARGETARCH"
8770
RUN echo "Target Variant: $TARGETVARIANT"
8871

8972

90-
91-
9273
WORKDIR /build
9374

9475

@@ -209,7 +190,7 @@ RUN go install github.com/mikefarah/yq/v4@latest
209190

210191
# This is the final target. The result of this target will be the image uploaded to the registry.
211192
# If you cannot find a more suitable place for an addition, this layer is a suitable place for it.
212-
FROM requirements-drivers
193+
FROM requirements
213194

214195
ENV HEALTHCHECK_ENDPOINT=http://localhost:8080/readyz
215196

0 commit comments

Comments
 (0)