added the docker-images directory and files

This commit is contained in:
chunghh 2023-07-15 01:52:45 +09:00
parent 9af1bbe8f1
commit 4c69f5ec5e
2 changed files with 13 additions and 0 deletions

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