File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ RUN apt-get update && apt-get install -y \
11
11
curl \
12
12
wget
13
13
14
- # Use mirror sources to speed up
15
- COPY sources.list.d /tmp/sources.list.d
14
+ # Use mirror to speed up
15
+ COPY apt/ sources.list.d /tmp/sources.list.d
16
16
RUN /tmp/sources.list.d/init.sh \
17
17
&& rm -rf /tmp/sources.list.d
18
18
@@ -39,12 +39,15 @@ RUN apt-get update && apt-get install -y \
39
39
# Unminimize to restore human-friendly tools that are missing from a minimal install
40
40
RUN yes | unminimize
41
41
42
- # Set locale
42
+ # Generate locale
43
43
RUN locale-gen en_US.UTF-8
44
44
45
45
# Set zsh as default shell
46
46
RUN chsh -s /bin/zsh
47
47
48
+ # Use mirror to speed up
49
+ COPY pip/pip.conf /root/.pip/pip.conf
50
+
48
51
# Install Python
49
52
RUN apt-get update && apt-get install -y \
50
53
python3 \
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ [global]
2
+ index-url = https://mirrors.aliyun.com/pypi/simple/
3
+
4
+ [install]
5
+ trusted-host = mirrors.aliyun.com
You can’t perform that action at this time.
0 commit comments