-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (43 loc) · 1.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM alpine
MAINTAINER Gergő Sulymosi gergo.sulymosi@gmail.com
VOLUME /root/projects
# TODO: the silversearcher
RUN apk update \
&& apk add --no-cache \
automake autoconf ncurses-dev build-base bash curl util-linux htop \
openssh less \
fish stow neovim tmux git tig bash fzf urlview the_silver_searcher \
ruby-dev ruby go nodejs npm python3-dev python3 python-dev python docker \
&& rm -f /tmp/* /etc/apk/cache/* \
&& python -m ensurepip --default-pip \
&& pip3 install --upgrade pip \
&& pip install --upgrade pip
# Set timezone
RUN apk add tzdata \
&& cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime \
&& echo "Europe/Amsterdam" > /etc/timezone \
&& apk del tzdata
# Dotfiles
ADD . /root/.dotfiles
RUN cd /root/.dotfiles \
&& make link
# Install Fish
RUN sed -i -e "s/bin\/ash/usr\/bin\/fish/" /etc/passwd
ENV SHELL /usr/bin/fish
RUN curl -L https://get.oh-my.fish > install-omf \
&& fish install-omf --noninteractive --path=~/.local/share/omf --config=~/.config/omf \
&& rm install-omf
# Install NeoVim
RUN npm install -g typescript neovim \
&& pip3 install neovim \
&& pip install neovim \
&& gem install neovim \
&& curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \
&& nvim -c PlugInstall -c UpdateRemotePlugins -c qall
ENV EDITOR=nvim
ENV TERM=xterm-256color
ENV LANG=en_US.UTF-8
ENV LC_CTYPE=en_US.UTF-8
WORKDIR /root/projects
CMD ["fish"]