From ebea470875a1f31b8d3b4b937be28d30462a397b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 20 Sep 2015 00:17:44 +0900 Subject: Build linux binary on Centos --- src/Dockerfile.centos | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Dockerfile.centos') diff --git a/src/Dockerfile.centos b/src/Dockerfile.centos index c03f43a2..aed4120d 100644 --- a/src/Dockerfile.centos +++ b/src/Dockerfile.centos @@ -1,8 +1,10 @@ -FROM centos:centos7 +FROM centos:centos6 MAINTAINER Junegunn Choi # yum -RUN yum install -y git gcc make tar ncurses-devel +RUN yum install -y git gcc make tar glibc-devel glibc-devel.i686 \ + ncurses-devel ncurses-static ncurses-devel.i686 \ + gpm-devel gpm-static libgcc.i686 # Install Go 1.4 RUN cd / && curl \ @@ -13,6 +15,9 @@ ENV GOPATH /go ENV GOROOT /go1.4 ENV PATH /go1.4/bin:$PATH +# For i386 build +RUN cd $GOROOT/src && GOARCH=386 ./make.bash + # Volume VOLUME /go -- cgit v1.2.3