added Dockerfile to install go1.23.1

This commit is contained in:
hyung-hwan 2024-09-30 17:59:10 +09:00
parent b36b9bf5a0
commit 9dc83f4072
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,5 @@
FROM hyunghwan/dev:go1.20.6.centos7
RUN ulimit -n 1024 && cd /opt && rm -rf go && wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz && tar -zxvf go1.23.1.linux-amd64.tar.gz && rm -f go1.23.1.linux-amd64.tar.gz
RUN echo 'PATH=$PATH:/opt/go/bin' > /etc/profile.d/go.sh

View File

@ -0,0 +1,3 @@
FROM docker.io/hyunghwan/dev:gcc.rocky9
RUN ulimit -n 1024 && dnf -y install wget git && wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz && tar -C /opt -zxvf go1.23.1.linux-amd64.tar.gz && rm -f go1.23.1.linux-amd64.tar.gz
RUN echo 'PATH=$PATH:/opt/go/bin' > /etc/profile.d/go.sh