OrangePi_CM5/external/config/templates/Dockerfile

132 lines
3.1 KiB
Docker
Raw Normal View History

FROM ubuntu:22.04
2020-10-30 09:50:39 +08:00
ARG DEBIAN_FRONTEND=noninteractive
2022-03-07 16:26:01 +08:00
RUN apt-get update && apt-get -y install \
joe \
software-properties-common \
2020-10-30 09:50:39 +08:00
gnupg \
gnupg1 \
gpgv1 \
2022-03-07 16:26:01 +08:00
curl \
2020-10-30 09:50:39 +08:00
&& rm -rf /var/lib/apt/lists/*
2022-03-07 16:26:01 +08:00
RUN sh -c " \
if [ $(dpkg --print-architecture) = amd64 ]; then \
2022-03-23 11:58:59 +08:00
apt-get update \
2022-03-07 16:26:01 +08:00
&& apt-get install -y --no-install-recommends \
lib32ncurses6 \
lib32stdc++6 \
lib32tinfo6 \
2022-03-23 11:58:59 +08:00
libc6-i386; \
2022-03-07 16:26:01 +08:00
fi"
2020-10-30 09:50:39 +08:00
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y --no-install-recommends \
acl \
aptly \
aria2 \
bc \
binfmt-support \
binutils \
bison \
btrfs-progs \
build-essential \
ca-certificates \
ccache \
cpio \
cryptsetup \
cryptsetup-bin \
debian-archive-keyring \
debian-keyring \
debootstrap \
device-tree-compiler \
dialog \
2022-03-07 16:26:01 +08:00
distcc \
2020-10-30 09:50:39 +08:00
dosfstools \
2022-03-07 16:26:01 +08:00
dwarves \
2020-10-30 09:50:39 +08:00
f2fs-tools \
fakeroot \
2024-11-04 03:16:18 +08:00
fdisk \
2020-10-30 09:50:39 +08:00
flex \
gawk \
gcc-arm-linux-gnueabihf \
2022-03-07 16:26:01 +08:00
gcc-arm-linux-gnueabi \
gcc-arm-none-eabi \
gdisk \
2020-10-30 09:50:39 +08:00
git \
imagemagick \
2022-03-07 16:26:01 +08:00
jq \
2020-10-30 09:50:39 +08:00
kmod \
libbison-dev \
2022-03-07 16:26:01 +08:00
libc6-amd64-cross \
2020-10-30 09:50:39 +08:00
libc6-dev-armhf-cross \
2022-03-23 11:58:59 +08:00
libfdt-dev \
libelf-dev \
2020-10-30 09:50:39 +08:00
libfile-fcntllock-perl \
libfl-dev \
liblz4-tool \
libncurses5-dev \
libpython2.7-dev \
libpython3-dev \
libssl-dev \
libusb-1.0-0-dev \
linux-base \
locales \
lsb-release \
lzop \
ncurses-base \
ncurses-term \
nfs-kernel-server \
ntpdate \
2022-03-07 16:26:01 +08:00
openssh-client \
2020-10-30 09:50:39 +08:00
p7zip-full \
parted \
patchutils \
pigz \
pixz \
pkg-config \
psmisc \
pv \
python2 \
python3 \
python3-dev \
python3-distutils \
2022-03-07 16:26:01 +08:00
python3-pkg-resources \
python3-setuptools \
qemu \
qemu-utils \
2020-10-30 09:50:39 +08:00
qemu-user-static \
rsync \
swig \
2022-03-07 16:26:01 +08:00
sudo \
2020-10-30 09:50:39 +08:00
systemd-container \
tzdata \
u-boot-tools \
udev \
unzip \
2022-03-07 16:26:01 +08:00
uuid \
2020-10-30 09:50:39 +08:00
uuid-dev \
2022-03-07 16:26:01 +08:00
uuid-runtime \
2020-10-30 09:50:39 +08:00
wget \
whiptail \
2022-03-07 16:26:01 +08:00
xfsprogs \
2020-10-30 09:50:39 +08:00
xxd \
zip \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
RUN git config --system --add safe.directory /root/orangepi
2020-10-30 09:50:39 +08:00
# 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
2024-11-04 08:00:31 +08:00
RUN echo 'loop max_loop=128' >> /etc/modules
2020-10-30 09:50:39 +08:00
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' TERM=screen
WORKDIR /root/orangepi
2022-03-23 11:58:59 +08:00
LABEL org.opencontainers.image.source="https://github.com/orangepi-xunlong/orangepi-build/blob/main/external/config/templates/Dockerfile" \
org.opencontainers.image.authors="Igor Pecovnik" \
org.opencontainers.image.licenses="GPL-2.0"
2022-03-07 16:26:01 +08:00
ENTRYPOINT [ "/bin/bash", "/root/orangepi/build.sh" ]