From 9544b0eba2cefc4a99a64544fab9c6df64cceeb3 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 26 Oct 2022 19:29:56 +0200 Subject: [PATCH] split install --- Dockerfile | 17 ++--------------- finalize-codeserver.sh | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 finalize-codeserver.sh diff --git a/Dockerfile b/Dockerfile index 9d29390..a0de5b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,19 +14,6 @@ RUN \ git config --system credential.helper store && \ echo 'source /usr/share/bash-completion/completions/git' >> /etc/bash.bashrc +ADD finalize-codeserver.sh /usr/bin/ RUN \ - echo "**** install dev runtimes ****" && \ - #curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \ - # update already called by nodesource install script - apt-get update && \ - apt-get install -y \ - # let the user install nodejs to save 800MB in image - # nodejs \ - golang-go &&\ - echo "**** clean up ****" && \ - apt-get clean && \ - rm -rf \ - /config/* \ - /tmp/* \ - /var/lib/apt/lists/* \ - /var/tmp/* + chmod +x /usr/bin/finalize-codeserver.sh diff --git a/finalize-codeserver.sh b/finalize-codeserver.sh new file mode 100644 index 0000000..a4d002a --- /dev/null +++ b/finalize-codeserver.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +echo "**** install dev runtimes ****" +curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - +apt-get install -y \ + nodejs \ + golang-go + +echo "**** clean up ****" +apt-get clean +rm -rf \ + /config/* \ + /tmp/* \ + /var/lib/apt/lists/* \ + /var/tmp/*