File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
.PHONY : build
10
10
build :
11
- docker build -t docker-sdk-python -f tests/Dockerfile --build-arg PYTHON_VERSION=2.7 .
11
+ docker build -t docker-sdk-python -f tests/Dockerfile --build-arg PYTHON_VERSION=2.7 --build-arg APT_MIRROR .
12
12
13
13
.PHONY : build-py3
14
14
build-py3 :
15
- docker build -t docker-sdk-python3 -f tests/Dockerfile .
15
+ docker build -t docker-sdk-python3 -f tests/Dockerfile --build-arg APT_MIRROR .
16
16
17
17
.PHONY : build-docs
18
18
build-docs :
Original file line number Diff line number Diff line change 1
1
ARG PYTHON_VERSION=3.7
2
2
3
3
FROM python:${PYTHON_VERSION}
4
+
5
+ ARG APT_MIRROR
6
+ RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list \
7
+ && sed -ri "s/(security).debian.org/${APT_MIRROR:-security.debian.org}/g" /etc/apt/sources.list
8
+
4
9
RUN apt-get update && apt-get -y install \
5
10
gnupg2 \
6
11
pass \
You can’t perform that action at this time.
0 commit comments