added the docker-images directory and files
This commit is contained in:
parent
9af1bbe8f1
commit
4c69f5ec5e
5
docker-images/Dockerfile.go-centos7
Normal file
5
docker-images/Dockerfile.go-centos7
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM centos:centos7.9.2009
|
||||||
|
|
||||||
|
|
||||||
|
RUN ulimit -n 1024 && yum -y install wget make gcc && cd /opt && wget https://go.dev/dl/go1.20.6.linux-amd64.tar.gz && tar -zxvf go1.20.6.linux-amd64.tar.gz && rm -f go1.20.6.linux-amd64.tar.gz
|
||||||
|
RUN echo 'PATH=$PATH:/opt/go/bin' > /etc/profile.d/go.sh
|
8
docker-images/Makefile
Normal file
8
docker-images/Makefile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
go-centos7:
|
||||||
|
docker build -t go:centos7 -f Dockerfile.$@ .
|
||||||
|
|
||||||
|
publish-go-centos7:
|
||||||
|
docker tag go:centos7 docker.io/hyunghwan/go:centos7
|
||||||
|
docker push docker.io/hyunghwan/go:centos7
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user