1b9ca314b8
- GOPATH is no longer required - fzf repository does not have to be in GOPATH - Build Linux binary with Go 1.5.3
25 lines
701 B
Docker
25 lines
701 B
Docker
FROM base/archlinux:2014.07.03
|
|
MAINTAINER Junegunn Choi <junegunn.c@gmail.com>
|
|
|
|
# apt-get
|
|
RUN pacman-key --populate archlinux && pacman-key --refresh-keys
|
|
RUN pacman-db-upgrade && pacman -Syu --noconfirm base-devel git
|
|
|
|
# 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 echo '[multilib]' >> /etc/pacman.conf && \
|
|
echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf && \
|
|
pacman-db-upgrade && yes | pacman -Sy gcc-multilib lib32-ncurses && \
|
|
cd $GOROOT/src && GOARCH=386 ./make.bash
|
|
|
|
# Default CMD
|
|
CMD cd /fzf/src && /bin/bash
|
|
|