From 44681e69e2be6bf54fb352452ee488e413d76b7f Mon Sep 17 00:00:00 2001 From: aptalca Date: Tue, 21 Sep 2021 12:08:42 -0400 Subject: [PATCH] standardize apt-get --- root/etc/cont-init.d/95-apt-get | 3 +++ root/etc/cont-init.d/98-scikit-learn | 14 +++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 root/etc/cont-init.d/95-apt-get diff --git a/root/etc/cont-init.d/95-apt-get b/root/etc/cont-init.d/95-apt-get new file mode 100644 index 0000000..5b1a21c --- /dev/null +++ b/root/etc/cont-init.d/95-apt-get @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bash + +apt-get update diff --git a/root/etc/cont-init.d/98-scikit-learn b/root/etc/cont-init.d/98-scikit-learn index ae5578a..810345b 100644 --- a/root/etc/cont-init.d/98-scikit-learn +++ b/root/etc/cont-init.d/98-scikit-learn @@ -1,13 +1,13 @@ #!/usr/bin/with-contenv bash # Install python3 first -apt-get update && apt-get install -y \ - build-essential \ - libssl-dev \ - libffi-dev \ - python3-dev \ - python3-pip \ - python3-venv +apt-get install -y \ + build-essential \ + libssl-dev \ + libffi-dev \ + python3-dev \ + python3-pip \ + python3-venv # Install python modules pip3 install jupyterlab scikit-learn