Adds basic container setup with pipeline #1

Merged
OCram85 merged 18 commits from woodpecker into master 2022-11-07 16:01:31 +01:00
2 changed files with 17 additions and 15 deletions
Showing only changes of commit 9544b0eba2 - Show all commits

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