Build linux binary on Centos

This commit is contained in:
Junegunn Choi committed 2015-09-20 00:17:44 +09:00
1 parent d980e00961
commit ebea470875
3 files changed
+18 -6

No files matched your search

+7 -2
View File
@@ -1,8 +1,10 @@
FROM centos:centos7
FROM centos:centos6
MAINTAINER Junegunn Choi <junegunn.c@gmail.com>
# 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