Skip to content

Commit 1493bdd

Browse files
committed
Add Dockerfile
1 parent 6830bdd commit 1493bdd

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Dockerfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
FROM alpine:3.4
2+
3+
MAINTAINER Henrique Santos Fernandes <sf.rique@gmail.com>
4+
5+
ENV HOME /home/developer
6+
ENV EDITOR vim
7+
# LANGS c,elixir,erlang,go,haskell,html,javascript,lisp,lua,ocaml,perl,php,python,ruby
8+
ENV VIM_BOOTSTRAP_LANGS erlang,go,html,javascript,lua,perl,php,python,ruby
9+
# ENV VIM_BOOTSTRAP_CURL_LANGS langs=erlang&langs=go&langs=html&langs=javascript&langs=lua&langs=perl&langs=php&langs=python&langs=ruby
10+
ENV DOCKER_VIM_BOOTSTRAP_SHA 197c482f05a29d386885a28995f6fc0d61c8b4db
11+
ENV GOPATH /go
12+
13+
RUN mkdir ${HOME}
14+
15+
RUN apk add --no-cache \
16+
ctags \
17+
curl \
18+
git \
19+
libstdc++ \
20+
py-pip \
21+
python3 \
22+
vim \
23+
ncurses
24+
25+
COPY vimrc.local ${HOME}/.vimrc.local
26+
27+
RUN apk add --no-cache --virtual build-deps \
28+
abuild \
29+
bash \
30+
binutils \
31+
build-base \
32+
cmake \
33+
gcc \
34+
go \
35+
llvm \
36+
musl-dev \
37+
perl \
38+
python-dev \
39+
python3-dev && \
40+
ln -s /usr/bin/make /usr/bin/gmake && \
41+
go get github.com/avelino/vim-bootstrap && \
42+
cd $GOPATH/src/github.com/avelino/vim-bootstrap && \
43+
git submodule init && \
44+
git submodule update && \
45+
git checkout ${DOCKER_VIM_BOOTSTRAP_SHA} && \
46+
go build && \
47+
./vim-bootstrap -langs=${VIM_BOOTSTRAP_LANGS} -editor=${EDITOR} > ${HOME}/.vimrc && \
48+
# curl 'http://vim-bootstrap.com/generate.vim' --data '${VIM_BOOTSTRAP_CURL_LANGS}&editor=${EDITOR}' > ${HOME}/.vimrc && \
49+
vim -E -s -c "source ~/.vimrc" -c "+PluginInstall +qall" || \
50+
${HOME}/.vim/plugged/YouCompleteMe/install.py && \
51+
rm -rf $GOPATH && \
52+
apk del build-deps
53+
54+
ENTRYPOINT ["vim"]

0 commit comments

Comments
 (0)