Last active
February 27, 2019 02:07
-
-
Save gofly/0dd827682c4a27e9dd1c702a3d49c2ed to your computer and use it in GitHub Desktop.
Compile openwrt in ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| RUN sed -i 's/archive\.ubuntu\.com/mirrors.aliyun.com/g;s/security\.ubuntu\.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \ | |
| apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get install --no-install-recommends -y asciidoc autoconf binutils bison bzip2 ca-certificates curl diffutils file flex \ | |
| g++ gawk gcc git locales make openssh-client patch python perl rsync subversion texinfo unzip \ | |
| util-linux wget xz-utils zlib1g-dev libc6-dev libncurses5-dev libssl-dev && \ | |
| localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m openwrt | |
| ENV LANG en_US.utf8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment