mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
140 lines
3.6 KiB
Docker
140 lines
3.6 KiB
Docker
ARG BASE_IMAGE=ubuntu:jammy
|
|
FROM $BASE_IMAGE as armbian_builder
|
|
ARG CUSTOM_PACKAGES='g++-11-arm-linux-gnueabihf libssl3'
|
|
ENV CUSTOM_PACKAGES $CUSTOM_PACKAGES
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get -y dist-upgrade && apt-get -y install \
|
|
joe \
|
|
software-properties-common \
|
|
gnupg \
|
|
gnupg1 \
|
|
gpgv1 \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN sh -c " \
|
|
if [ $(dpkg --print-architecture) = amd64 ]; then \
|
|
apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
lib32ncurses6 \
|
|
lib32stdc++6 \
|
|
lib32tinfo6 \
|
|
libc6-i386; \
|
|
fi"
|
|
RUN apt-get update \
|
|
&& apt-get -y dist-upgrade \
|
|
&& apt-get install -y --no-install-recommends \
|
|
$CUSTOM_PACKAGES \
|
|
acl \
|
|
aptly \
|
|
aria2 \
|
|
bc \
|
|
binfmt-support \
|
|
binutils \
|
|
bison \
|
|
btrfs-progs \
|
|
build-essential \
|
|
busybox \
|
|
ca-certificates \
|
|
ccache \
|
|
cpio \
|
|
cryptsetup \
|
|
cryptsetup-bin \
|
|
debian-archive-keyring \
|
|
debian-keyring \
|
|
debootstrap \
|
|
device-tree-compiler \
|
|
dialog \
|
|
distcc \
|
|
dosfstools \
|
|
dwarves \
|
|
f2fs-tools \
|
|
fakeroot \
|
|
fdisk \
|
|
flex \
|
|
gawk \
|
|
gcc-aarch64-linux-gnu \
|
|
gcc-riscv64-linux-gnu \
|
|
gcc-arm-linux-gnueabihf \
|
|
gcc-arm-linux-gnueabi \
|
|
gcc-arm-none-eabi \
|
|
gdisk \
|
|
git \
|
|
imagemagick \
|
|
jq \
|
|
kmod \
|
|
libbison-dev \
|
|
libc6-amd64-cross \
|
|
libc6-dev-armhf-cross \
|
|
libfdt-dev \
|
|
libelf-dev \
|
|
libfile-fcntllock-perl \
|
|
libfl-dev \
|
|
liblz4-tool \
|
|
libncurses5-dev \
|
|
libpython2.7-dev \
|
|
libpython3-dev \
|
|
libssl-dev \
|
|
libusb-1.0-0-dev \
|
|
linux-base \
|
|
libmpc-dev \
|
|
locales \
|
|
lsb-release \
|
|
lzop \
|
|
ncurses-base \
|
|
ncurses-term \
|
|
nfs-kernel-server \
|
|
ntpdate \
|
|
openssh-client \
|
|
p7zip-full \
|
|
parted \
|
|
parallel \
|
|
patchutils \
|
|
pigz \
|
|
pixz \
|
|
pkg-config \
|
|
psmisc \
|
|
pv \
|
|
python2 \
|
|
python3 \
|
|
python3-dev \
|
|
python3-distutils \
|
|
python3-pkg-resources \
|
|
python3-setuptools \
|
|
qemu-utils \
|
|
qemu-user-static \
|
|
rsync \
|
|
swig \
|
|
sudo \
|
|
tzdata \
|
|
u-boot-tools \
|
|
udev \
|
|
unzip \
|
|
uuid \
|
|
uuid-dev \
|
|
uuid-runtime \
|
|
wget \
|
|
whiptail \
|
|
xfsprogs \
|
|
xxd \
|
|
zip \
|
|
zstd \
|
|
zlib1g-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
# Static port for NFSv3 server used for USB FEL boot
|
|
RUN sed -i 's/\(^STATDOPTS=\).*/\1"--port 32765 --outgoing-port 32766"/' /etc/default/nfs-common \
|
|
&& sed -i 's/\(^RPCMOUNTDOPTS=\).*/\1"--port 32767"/' /etc/default/nfs-kernel-server
|
|
|
|
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' TERM=screen
|
|
WORKDIR /root/armbian
|
|
LABEL org.opencontainers.image.source="https://github.com/armbian/build/blob/master/config/templates/Dockerfile" \
|
|
org.opencontainers.image.url="https://github.com/armbian/build/pkgs/container/build" \
|
|
org.opencontainers.image.vendor="armbian" \
|
|
org.opencontainers.image.title="Armbian build framework" \
|
|
org.opencontainers.image.description="Custom Linux build framework" \
|
|
org.opencontainers.image.documentation="https://docs.armbian.com" \
|
|
org.opencontainers.image.authors="Igor Pecovnik" \
|
|
org.opencontainers.image.licenses="GPL-2.0"
|
|
ENTRYPOINT [ "/bin/bash", "/root/armbian/compile.sh" ]
|