2015-01-05 17:04:06 +00:00
|
|
|
FROM base/archlinux:2014.07.03
|
|
|
|
MAINTAINER Junegunn Choi <junegunn.c@gmail.com>
|
|
|
|
|
|
|
|
# apt-get
|
|
|
|
RUN pacman-db-upgrade && pacman -Syu --noconfirm base-devel git
|
|
|
|
|
|
|
|
# Install Go 1.4
|
|
|
|
RUN cd / && curl \
|
2015-03-01 02:49:11 +00:00
|
|
|
https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \
|
2015-01-05 17:04:06 +00:00
|
|
|
tar -xz && mv go go1.4
|
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV GOROOT /go1.4
|
|
|
|
ENV PATH /go1.4/bin:$PATH
|
|
|
|
|
2015-01-06 15:24:05 +00:00
|
|
|
# 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
|
|
|
|
|
2015-01-05 17:04:06 +00:00
|
|
|
# Volume
|
2015-01-11 05:19:50 +00:00
|
|
|
VOLUME /go
|
2015-01-05 17:04:06 +00:00
|
|
|
|
|
|
|
# Default CMD
|
|
|
|
CMD cd /go/src/github.com/junegunn/fzf/src && /bin/bash
|
|
|
|
|