mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-05 04:57:50 +00:00
1b9ca314b8
- GOPATH is no longer required - fzf repository does not have to be in GOPATH - Build Linux binary with Go 1.5.3
23 lines
545 B
Docker
23 lines
545 B
Docker
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 libgpm-dev
|
|
|
|
# Install Go 1.4
|
|
RUN cd / && curl \
|
|
https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \
|
|
tar -xz && mv go go1.4
|
|
|
|
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
|
|
|
|
# Default CMD
|
|
CMD cd /fzf/src && /bin/bash
|
|
|