Skip to content

Commit 5ba0045

Browse files
committed
fix: install buildah from Kubic repo (v1.30+ supports chroot isolation properly)
1 parent 5ca296b commit 5ba0045

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,23 @@ FROM ubuntu:22.04
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

5-
# Base deps + Tauri Linux requirements + buildah for container builds
5+
# Base deps + Tauri Linux requirements
66
RUN apt-get update && apt-get install -y --no-install-recommends \
77
curl ca-certificates git sudo jq zip \
88
libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev \
99
build-essential pkg-config \
1010
lib32gcc-s1 \
11-
buildah \
1211
&& rm -rf /var/lib/apt/lists/*
1312

13+
# Buildah from Kubic (v1.30+, supports --isolation chroot without CLONE_NEWUSER)
14+
RUN . /etc/os-release && \
15+
curl -fsSL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${VERSION_ID}/Release.key" \
16+
| gpg --dearmor -o /usr/share/keyrings/kubic.gpg && \
17+
echo "deb [signed-by=/usr/share/keyrings/kubic.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${VERSION_ID}/ /" \
18+
> /etc/apt/sources.list.d/kubic.list && \
19+
apt-get update && apt-get install -y --no-install-recommends buildah && \
20+
rm -rf /var/lib/apt/lists/*
21+
1422
# Node.js 24
1523
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
1624
&& apt-get install -y nodejs \

0 commit comments

Comments
 (0)