Merge remote-tracking branch 'origin/dev' into refactor/code-quality
This commit is contained in:
+10
-8
@@ -1,16 +1,17 @@
|
|||||||
# ── Base images ───────────────────────────────────────────────────────────────
|
# ── Base images ───────────────────────────────────────────────────────────────
|
||||||
# amd64 + gpu: NVIDIA CUDA 12.8 + cuDNN (GPU acceleration via NVIDIA Container Toolkit)
|
# amd64 + gpu: NVIDIA CUDA 12.8 + cuDNN on Ubuntu 24.04 (highest Ubuntu NVIDIA publishes)
|
||||||
# amd64 + rocm: Ubuntu 22.04 (AMD GPU via ROCm — pass /dev/kfd and /dev/dri)
|
# amd64 + rocm: Ubuntu 26.04 (AMD GPU via ROCm — pass /dev/kfd and /dev/dri)
|
||||||
# amd64 + intel: Ubuntu 22.04 (Intel Arc / iGPU via OpenVINO — pass /dev/dri)
|
# amd64 + intel: Ubuntu 22.04 (Intel Arc / iGPU via OpenVINO — pass /dev/dri)
|
||||||
# amd64 + cpu: Ubuntu 22.04 (CPU-only, ~2 GB smaller image)
|
# Note: intel stays on 22.04 — Intel's GPU repo only publishes for jammy
|
||||||
|
# amd64 + cpu: Ubuntu 26.04 (CPU-only, ~2 GB smaller image)
|
||||||
# arm64: Ubuntu 24.04 (CPU-only; no CUDA/ROCm wheels on ARM)
|
# arm64: Ubuntu 24.04 (CPU-only; no CUDA/ROCm wheels on ARM)
|
||||||
|
|
||||||
ARG VARIANT=gpu
|
ARG VARIANT=gpu
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu22.04 AS base-amd64-gpu
|
FROM --platform=$BUILDPLATFORM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu24.04 AS base-amd64-gpu
|
||||||
FROM ubuntu:22.04 AS base-amd64-rocm
|
FROM ubuntu:26.04 AS base-amd64-rocm
|
||||||
FROM ubuntu:22.04 AS base-amd64-intel
|
FROM ubuntu:22.04 AS base-amd64-intel
|
||||||
FROM ubuntu:22.04 AS base-amd64-cpu
|
FROM ubuntu:26.04 AS base-amd64-cpu
|
||||||
FROM ubuntu:24.04 AS base-arm64-gpu
|
FROM ubuntu:24.04 AS base-arm64-gpu
|
||||||
FROM ubuntu:24.04 AS base-arm64-rocm
|
FROM ubuntu:24.04 AS base-arm64-rocm
|
||||||
FROM ubuntu:24.04 AS base-arm64-intel
|
FROM ubuntu:24.04 AS base-arm64-intel
|
||||||
@@ -24,8 +25,9 @@ FROM base-${TARGETARCH}-${VARIANT} AS build
|
|||||||
ARG VARIANT=gpu
|
ARG VARIANT=gpu
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Both Ubuntu 22.04 and 24.04 get Python 3.13 from the deadsnakes PPA.
|
# All base images get Python 3.13 from the deadsnakes PPA (26.04 ships 3.14 natively;
|
||||||
# GNUPGHOME is isolated so gpg never contacts an agent socket under QEMU.
|
# 3.13 is used to keep dependencies tested and aligned). GNUPGHOME is isolated
|
||||||
|
# so gpg never contacts an agent socket under QEMU.
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ca-certificates curl gnupg software-properties-common \
|
ca-certificates curl gnupg software-properties-common \
|
||||||
&& GNUPGHOME=$(mktemp -d) add-apt-repository ppa:deadsnakes/ppa -y \
|
&& GNUPGHOME=$(mktemp -d) add-apt-repository ppa:deadsnakes/ppa -y \
|
||||||
|
|||||||
Reference in New Issue
Block a user