forked from hanwckf/rt-n56u
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (19 loc) · 939 Bytes
/
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
FROM ubuntu:bionic
MAINTAINER hanwckf <hanwckf@vip.qq.com>
ENV DEBIAN_FRONTEND noninteractive
ARG APT_MIRROR_URL
RUN if test -n "$APT_MIRROR_URL"; then \
sed -i "s#http://archive.ubuntu.com#$APT_MIRROR_URL#; \
s#http://security.ubuntu.com#$APT_MIRROR_URL#; \
s#http://ports.ubuntu.com#$APT_MIRROR_URL#" \
/etc/apt/sources.list; fi
RUN apt -y -q update && apt -y -q upgrade && \
apt install -y -q unzip libtool-bin curl cmake gperf gawk flex bison htop \
nano xxd fakeroot cpio git python-docutils gettext automake autopoint \
texinfo build-essential help2man pkg-config zlib1g-dev libgmp3-dev libmpc-dev \
libmpfr-dev libncurses5-dev libltdl-dev wget kmod sudo locales vim && \
rm -rf /var/cache/apt/
RUN echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen
ENV LANG en_US.utf8
# See https://github.com/hanwckf/padavan-toolchain/releases
ADD mipsel-linux-uclibc.tar.xz /opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x