summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2018-06-08 19:42:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2018-06-08 19:42:29 +0900
commitaf87650bc42ec8b821a3502857ca28692d6525d4 (patch)
treeb3bfd98bf64c6e31e6db67ad95b0cff2f4efc854 /Dockerfile
parent2b19c0bc685fc2f726b977d161e6ce720a4d04a8 (diff)
[docker] Build binary from source
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index a37d2e20..d71aa0bd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
FROM archlinux/base:latest
-RUN pacman -Sy && pacman --noconfirm -S awk tar git curl tmux zsh fish ruby procps
+RUN pacman -Sy && pacman --noconfirm -S awk git tmux zsh fish ruby procps go make
RUN gem install --no-ri --no-rdoc minitest
RUN echo '. /usr/share/bash-completion/completions/git' >> ~/.bashrc
RUN echo '. ~/.bashrc' >> ~/.bash_profile
@@ -7,5 +7,5 @@ RUN echo '. ~/.bashrc' >> ~/.bash_profile
# Do not set default PS1
RUN rm -f /etc/bash.bashrc
COPY . /fzf
-RUN /fzf/install --all
-CMD tmux new 'ruby /fzf/test/test_go.rb > out && touch ok' && cat out && [ -e ok ]
+RUN cd /fzf && make install && ./install --all
+CMD tmux new 'set -o pipefail; ruby /fzf/test/test_go.rb | tee out && touch ok' && cat out && [ -e ok ]