32 lines
1.0 KiB
Docker
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"] |