File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ WORKDIR /root
14
14
15
15
MAINTAINER Pavel Shirshov
16
16
17
- RUN echo "deb [arch=amd64] http://debian-archive.trafficmanager.net/debian buster-backports main" >> /etc/apt/sources.list
17
+ COPY ["sources.list.{{ CONFIGURED_ARCH }}", "/etc/apt/sources.list"]
18
+
18
19
## Make apt-get non-interactive
19
20
ENV DEBIAN_FRONTEND=noninteractive
20
21
21
22
## Set the apt source, update package cache and install necessary packages
22
23
## TODO: Clean up this step
23
- RUN sed --in-place 's/httpredir.debian.org/debian-archive.trafficmanager.net/' /etc/apt/sources.list \
24
- && apt-get update \
24
+ RUN apt-get update \
25
25
&& apt-get upgrade -y \
26
26
&& apt-get dist-upgrade -y \
27
27
&& apt-get install -y \
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ if [ -z "$DISTRO" ]; then
38
38
fi
39
39
fi
40
40
41
- if [[ " $IMAGENAME " == docker-base-* ]]; then
41
+ if [[ " $IMAGENAME " == docker-base-* ]] || [[ " $IMAGENAME " == docker-ptf ]] ; then
42
42
scripts/build_mirror_config.sh ${DOCKERFILE_PATH} $ARCH $DISTRO
43
43
fi
44
44
You can’t perform that action at this time.
0 commit comments