This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): 实现阿里镜像源替换,生成zjzstu/ubuntu并上传
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# $ docker build -t zjzstu/ubuntu:18.04 -t zjzstu/ubuntu:latest . | ||
# $ docker run -it --rm zjzstu/ubuntu bash | ||
|
||
FROM ubuntu:18.04 | ||
|
||
LABEL maintainer "zhujian <zjzstu@github.com>" | ||
|
||
COPY sources.list . | ||
RUN mv sources.list /etc/apt/sources.list | ||
RUN apt-get update && apt-get install -f |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | ||
|
||
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | ||
|
||
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | ||
|
||
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse | ||
|
||
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse |