summaryrefslogtreecommitdiffstats
path: root/src/Dockerfile.centos
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-03-15 20:17:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-03-15 20:17:29 +0900
commit6ea760a336edb18f7d7ee38dd7b1ed3040a7a577 (patch)
tree751adda7fdcea081c7c97d94316b8f0831fd18e2 /src/Dockerfile.centos
parentf704b94603f386c7b6458ba358816f52bbad2b36 (diff)
Make 32-bit linux binary (partially) static (#523)
Diffstat (limited to 'src/Dockerfile.centos')
-rw-r--r--src/Dockerfile.centos4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Dockerfile.centos b/src/Dockerfile.centos
index a754491d..2024482b 100644
--- a/src/Dockerfile.centos
+++ b/src/Dockerfile.centos
@@ -16,6 +16,10 @@ RUN cd / && curl \
https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz | \
tar -xz && mv go go1.5
+# Install RPMs for building static 32-bit binary
+RUN curl ftp://ftp.pbone.net/mirror/ftp.centos.org/6.7/os/i386/Packages/ncurses-static-5.7-4.20090207.el6.i686.rpm -o rpm && rpm -i rpm && \
+ curl ftp://ftp.pbone.net/mirror/ftp.centos.org/6.7/os/i386/Packages/gpm-static-1.20.6-12.el6.i686.rpm -o rpm && rpm -i rpm
+
ENV GOROOT_BOOTSTRAP /go1.4
ENV GOROOT /go1.5
ENV PATH /go1.5/bin:$PATH