diff --git a/Dockerfile b/Dockerfile index 84fb10f..961a9a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,17 @@ RUN dnf install -y golang nodejs python3-devel mycli pgcli git-lfs awscli openss # Devops stuff RUN dnf install -y ansible dig nmap +# Latest Golang +RUN export GOVERSION=1.25.3 && \ + wget -O /usr/src/go${GOVERSION}.linux-amd64.tar.gz https://go.dev/dl/go${GOVERSION}.linux-amd64.tar.gz && \ + rm -rf /usr/local/go && \ + tar -C /usr/local -xzf /usr/src/go${GOVERSION}.linux-amd64.tar.gz && \ + rm -f /usr/src/go${GOVERSION}.linux-amd64.tar.gz && \ + unlink /usr/local/bin/go || echo "" && \ + unlink /usr/local/bin/gofmt || echo "" && \ + ln -s /usr/local/go/bin/go /usr/local/bin/go && \ + ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt + # User RUN groupadd cx -g 1000 RUN useradd cx -u 1000 -g cx -d /var/home/cx -s /usr/bin/fish