Dockerfile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. FROM ubuntu:22.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get update && apt-get -y install \
  4. joe \
  5. software-properties-common \
  6. gnupg \
  7. gnupg1 \
  8. gpgv1 \
  9. curl \
  10. && rm -rf /var/lib/apt/lists/*
  11. RUN sh -c " \
  12. if [ $(dpkg --print-architecture) = amd64 ]; then \
  13. apt-get update \
  14. && apt-get install -y --no-install-recommends \
  15. lib32ncurses6 \
  16. lib32stdc++6 \
  17. lib32tinfo6 \
  18. libc6-i386; \
  19. fi"
  20. RUN apt-get update \
  21. && apt-get -y upgrade \
  22. && apt-get install -y --no-install-recommends \
  23. acl \
  24. aptly \
  25. aria2 \
  26. bc \
  27. binfmt-support \
  28. binutils \
  29. bison \
  30. btrfs-progs \
  31. build-essential \
  32. ca-certificates \
  33. ccache \
  34. cpio \
  35. cryptsetup \
  36. cryptsetup-bin \
  37. debian-archive-keyring \
  38. debian-keyring \
  39. debootstrap \
  40. device-tree-compiler \
  41. dialog \
  42. distcc \
  43. dosfstools \
  44. dwarves \
  45. f2fs-tools \
  46. fakeroot \
  47. flex \
  48. gawk \
  49. gcc-arm-linux-gnueabihf \
  50. gcc-arm-linux-gnueabi \
  51. gcc-arm-none-eabi \
  52. gdisk \
  53. git \
  54. imagemagick \
  55. jq \
  56. kmod \
  57. libbison-dev \
  58. libc6-amd64-cross \
  59. libc6-dev-armhf-cross \
  60. libfdt-dev \
  61. libelf-dev \
  62. libfile-fcntllock-perl \
  63. libfl-dev \
  64. liblz4-tool \
  65. libncurses5-dev \
  66. libpython2.7-dev \
  67. libpython3-dev \
  68. libssl-dev \
  69. libusb-1.0-0-dev \
  70. linux-base \
  71. locales \
  72. lsb-release \
  73. lzop \
  74. ncurses-base \
  75. ncurses-term \
  76. nfs-kernel-server \
  77. ntpdate \
  78. openssh-client \
  79. p7zip-full \
  80. parted \
  81. patchutils \
  82. pigz \
  83. pixz \
  84. pkg-config \
  85. psmisc \
  86. pv \
  87. python2 \
  88. python3 \
  89. python3-dev \
  90. python3-distutils \
  91. python3-pkg-resources \
  92. python3-setuptools \
  93. qemu \
  94. qemu-utils \
  95. qemu-user-static \
  96. rsync \
  97. swig \
  98. sudo \
  99. systemd-container \
  100. tzdata \
  101. u-boot-tools \
  102. udev \
  103. unzip \
  104. uuid \
  105. uuid-dev \
  106. uuid-runtime \
  107. wget \
  108. whiptail \
  109. xfsprogs \
  110. xxd \
  111. zip \
  112. zlib1g-dev \
  113. && rm -rf /var/lib/apt/lists/*
  114. RUN locale-gen en_US.UTF-8
  115. RUN git config --system --add safe.directory /root/orangepi
  116. # Static port for NFSv3 server used for USB FEL boot
  117. RUN sed -i 's/\(^STATDOPTS=\).*/\1"--port 32765 --outgoing-port 32766"/' /etc/default/nfs-common \
  118. && sed -i 's/\(^RPCMOUNTDOPTS=\).*/\1"--port 32767"/' /etc/default/nfs-kernel-server
  119. ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' TERM=screen
  120. WORKDIR /root/orangepi
  121. LABEL org.opencontainers.image.source="https://github.com/orangepi-xunlong/orangepi-build/blob/main/external/config/templates/Dockerfile" \
  122. org.opencontainers.image.authors="Igor Pecovnik" \
  123. org.opencontainers.image.licenses="GPL-2.0"
  124. ENTRYPOINT [ "/bin/bash", "/root/orangepi/build.sh" ]