Files
meta-u4go-distrib/docker/Dockerfile
Dany LE 480ffa228a
All checks were successful
diya-u4go-distrib / build-yocto (push) Successful in 2m15s
diya-u4go-distrib / build-android-images (push) Successful in 7s
fix(ci): add missing tool to docker image
2026-02-04 19:24:07 +01:00

32 lines
1.0 KiB
Docker

FROM debian:bookworm-slim
# Enable i386 architecture and install dependencies
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# 32-bit runtime support
libc6:i386 \
libstdc++6:i386 \
libgcc-s1:i386 \
# img2simg and related tools
android-sdk-libsparse-utils \
# tools needed for download & extraction
ca-certificates \
curl \
unzip \
device-tree-compiler \
nodejs npm git \
&& rm -rf /var/lib/apt/lists/*
# Download and extract mkbootimg_tools
RUN mkdir -p /opt/mkboot \
&& curl -L https://git.iohub.dev/dany/mkbootimg_tools/archive/master.zip \
-o /tmp/mkbootimg_tools.zip \
&& unzip /tmp/mkbootimg_tools.zip -d /opt/ \
&& rm /tmp/mkbootimg_tools.zip \
# Ensure executable and create symlink
&& chmod +x /opt/mkbootimg_tools/mkboot \
&& ln -sf /opt/mkbootimg_tools/mkboot /usr/local/bin/mkboot
# Example default command
# CMD ["mkboot", "--help"]