Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
feat(docker): 实现阿里镜像源替换,生成zjzstu/ubuntu并上传
Browse files Browse the repository at this point in the history
  • Loading branch information
zjZSTU committed Sep 26, 2019
1 parent 73912de commit f460f0f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dockerfiles/system_mirror/Dockerfile
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
14 changes: 14 additions & 0 deletions dockerfiles/system_mirror/sources.list
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

0 comments on commit f460f0f

Please sign in to comment.