split install
ci/woodpecker/pr/test Pipeline was successful Details
ci/woodpecker/push/test Pipeline was successful Details
ci/woodpecker/pr/master Pipeline was successful Details
ci/woodpecker/push/next Pipeline was successful Details
ci/woodpecker/push/master Pipeline was successful Details
ci/woodpecker/pr/next Pipeline was successful Details

This commit is contained in:
OCram85 2022-10-26 19:29:56 +02:00
parent 6221565fa1
commit 9544b0eba2
2 changed files with 17 additions and 15 deletions

View File

@ -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

15
finalize-codeserver.sh Normal file
View File

@ -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/*