m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Build i386 binary as well

This commit is contained in:
Junegunn Choi
2015-01-06 02:04:06 +09:00
parent ee2ee02599
commit 3e6c950e12
7 changed files with 133 additions and 69 deletions

30
src/Dockerfile.ubuntu Normal file
View File

@@ -0,0 +1,30 @@
FROM ubuntu:14.04
MAINTAINER Junegunn Choi <junegunn.c@gmail.com>
# apt-get
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y --force-yes git curl build-essential libncurses-dev
# Install Go 1.4
RUN cd / && curl \
https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz | \
tar -xz && mv go go1.4
ENV GOPATH /go
ENV GOROOT /go1.4
ENV PATH /go1.4/bin:$PATH
# For i386 build
RUN apt-get install -y lib32ncurses5-dev && \
cd $GOROOT/src && GOARCH=386 ./make.bash
# Symlink fzf directory
RUN mkdir -p /go/src/github.com/junegunn && \
ln -s /fzf /go/src/github.com/junegunn/fzf
# Volume
VOLUME /fzf
# Default CMD
CMD cd /go/src/github.com/junegunn/fzf/src && /bin/bash