-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 914 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
27
28
FROM ubuntu:14.04
MAINTAINER sinkcup <[email protected]>
RUN apt-get update -qq
RUN apt-get upgrade -y
RUN apt-get install -y build-essential ccache curl dnsutils flex gawk gettext git liblzma-dev libncurses5-dev libssl-dev python subversion u-boot-tools unzip wget xsltproc zlib1g-dev
RUN \
mkdir -p /root/openwrt/ && \
cd /root/openwrt/ && \
ip=`nslookup downloads.openwrt.io 208.67.222.222 | grep Address | tail -n 1 | awk '{print $2}'` && \
echo $ip && \
curl -o gee-mediatek.tar.gz -H 'Host: downloads.openwrt.io' http://$ip/vendors/gee/mediatek/gee-mediatek.tar.gz && \
tar -zxvf gee-mediatek.tar.gz
ADD . /root/openwrt/gee-mediatek/
RUN \
cd /root/openwrt/gee-mediatek/ && \
./dl.sh
RUN \
cd /root/openwrt/gee-mediatek/ && \
sed -i '16s/\[/#\[/' include/prereq-build.mk && \
make defconfig && \
make package/network/utils/curl/compile -j V=99
WORKDIR /root/openwrt/gee-mediatek/