Skip to content

Commit

Permalink
fix: use dpkg instead of apt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
josegonzalez committed Nov 1, 2019
1 parent d1f1d7c commit 4343158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal-functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4343158

Please sign in to comment.