Skip to content

Instantly share code, notes, and snippets.

@gofly
Last active February 27, 2019 02:07
Show Gist options
  • Save gofly/0dd827682c4a27e9dd1c702a3d49c2ed to your computer and use it in GitHub Desktop.
Save gofly/0dd827682c4a27e9dd1c702a3d49c2ed to your computer and use it in GitHub Desktop.
Compile openwrt in ubuntu
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