forked from hanwckf/rt-n56u
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: update
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,12 @@ MAINTAINER hanwckf <[email protected]> | |
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
#RUN sed -i 's#http://archive.ubuntu.com#http://mirrors.huaweicloud.com#' /etc/apt/sources.list | ||
#RUN sed -i 's#http://security.ubuntu.com#http://mirrors.huaweicloud.com#' /etc/apt/sources.list | ||
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 \ | ||
|
This file contains 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