-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
51 lines (43 loc) · 1.82 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:22.04
LABEL maintainer="Hailong <whlsxl@gmail.com>"
ENV DEBIAN_FRONTEND=noninteractive
ENV FORCE_UNSAFE_CONFIGURE=1
# ENV LANG en_US.utf8
# `/lede/` is lede repository location
#
# lede make config file, generate after make menuconfig
# `/.config`
#
VOLUME /lede/
# build img path
# VOLUME /lede/bin
# /diy_respository.sh
# The script to diy lede respository
RUN \
touch /etc/apt/sources.list && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev glib2.0 libgmp3-dev libltdl-dev \
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools \
python3-setuptools libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo \
uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev clang libfuse-dev make golang-go && \
apt-get install -y wget curl swig time nano tzdata && \
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata && \
echo "alias time=/usr/bin/time" > /root/.bashrc && \
apt-get clean && \
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* /usr/share/man/* && \
rm -rf /root/.cache/* && \
rm -rf /var/lib/dpkg/info/* && \
git config --global http.sslverify false && \
git config --global https.sslverify false
COPY root/ /
RUN \
chmod +x /lede.sh && \
touch /.config
WORKDIR /lede/
ENTRYPOINT [ "/bin/sh", "/lede.sh" ]