File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM centos:5.11
2
+
3
+ RUN rm -f /etc/yum.repos.d/*.repo
4
+ RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
5
+
6
+ COPY CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo
7
+ RUN yum install -y gcc xz
8
+
9
+ ADD go1.4.3 /usr/local/go1.4.3
10
+ ADD go1.12.4 /usr/local/go
11
+
12
+ ENV GOROOT_BOOTSTRAP=/usr/local/go1.4.3/
13
+ RUN cd /usr/local/go/src/; ./make.bash
14
+ RUN cd /usr/local/; rm -rf go/pkg/obj; tar cf - go | xz -z - > /go1.12.4-CentOS5.linux-amd64.tar.xz
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if [[ ! -r go1.12.4 ]]; then
10
10
wget -c https://dl.google.com/go/go1.12.4.src.tar.gz
11
11
tar zxvf go1.12.4.src.tar.gz
12
12
mv go go1.12.4
13
+ patch -p1 -d go1.12.4 < go1.12.4-fix.diff
13
14
fi
14
15
15
16
docker build .
You can’t perform that action at this time.
0 commit comments