From 4343158f06951ff9edbf28c86e4c629cdb275a45 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 1 Nov 2019 17:37:31 -0400 Subject: [PATCH] fix: use dpkg instead of apt By switching back to dpkg for installing packages, we can ensure that a remote apt repository will not be hit when installing dependencies, as dpkg will only install packages that are specified, and not any requirements. --- internal-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal-functions b/internal-functions index 00ccc43..372581f 100755 --- a/internal-functions +++ b/internal-functions @@ -102,7 +102,7 @@ fi if [ -d $DIR/dpkg-packages ]; then PACKAGES=\$(find $DIR/dpkg-packages -type f -name '*.deb' | tr "\\n" " ") echo "-----> Injecting packages: \$PACKAGES" - apt install -y \$PACKAGES + dpkg -i \$PACKAGES fi rm -rf /tmp/apt sleep 1 # wait so that docker run has not exited before docker attach