From d95b81523f573456b2653fff6945de6f53ec2033 Mon Sep 17 00:00:00 2001 From: caiych Date: Tue, 16 Mar 2021 21:52:35 +0800 Subject: [PATCH] Install gcc at the end of code-server-golang init script --- root/etc/cont-init.d/98-golang | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/etc/cont-init.d/98-golang b/root/etc/cont-init.d/98-golang index 7a0dab2..ae6c1a3 100644 --- a/root/etc/cont-init.d/98-golang +++ b/root/etc/cont-init.d/98-golang @@ -17,6 +17,9 @@ if [ -f "/golang/golang_${ARCH}.tar.gz" ]; then echo "Installing golang" tar xzf "/golang/golang_${ARCH}.tar.gz" -C /usr/local rm -rf /golang + + echo "Installing gcc, to make CGO work" + apt-get update && apt-get install -y gcc else echo "Golang already installed, skipping" fi