We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b1145 commit ff8d247Copy full SHA for ff8d247
bin/make-base-vm
@@ -193,12 +193,21 @@ if [ $DOCKER = "1" ]; then
193
base_image="$DISTRO:$SUITE"
194
fi
195
196
+ if [ $(uname) != "Darwin" ]; then
197
+ CACHELINE=$(cat << EOF0
198
+RUN echo 'Acquire::http { Proxy "$MIRROR_BASE"; };' > /etc/apt/apt.conf.d/50cacher
199
+EOF0
200
+)
201
+ else
202
+ # MacOS, no local debian cache
203
+ CACHELINE=""
204
+ fi
205
# Generate the dockerfile
206
cat << EOF > $OUT.Dockerfile
207
FROM $base_image
208
209
ENV DEBIAN_FRONTEND=noninteractive
-RUN echo 'Acquire::http { Proxy "$MIRROR_BASE"; };' > /etc/apt/apt.conf.d/50cacher
210
+$CACHELINE
211
RUN apt-get update && apt-get --no-install-recommends -y install $addpkg
212
213
RUN useradd -ms /bin/bash -U $DISTRO
0 commit comments