Latest golang
All checks were successful
Build and Push / build-and-push (push) Successful in 3m24s

This commit is contained in:
Adam Štrauch 2025-10-15 15:59:30 +02:00
parent 569c8fab8a
commit 896eeaeb1e
Signed by: cx
GPG key ID: 7262DAFE292BCE20

View file

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