forked from daler/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
67 lines (52 loc) · 1.8 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM ubuntu:latest
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install -y git wget curl sudo rsync locales
# Locale is set in .bash_profile; needs to be created
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
RUN locale-gen en_US.UTF-8
# From now on, use login shell so that bashrc gets sourced
ENV SHELL /bin/bash
# Get this installed up front out of the way without prompting for a region
# (which otherwise hangs the build)
RUN DEBIAN_FRONTEND=noninteractive apt-get install tzdata
ENV TMPDIR=/tmp
ENV USER=dockeruser
ENV HOME=/root/dockeruser
RUN mkdir -p $HOME
RUN mkdir -p $TMPDIR
ADD . dotfiles
WORKDIR dotfiles
RUN git checkout $BRANCH
# Run setup in order
ENV DOTFILES_FORCE=true
RUN ./setup.sh --apt-install-minimal
RUN ./setup.sh --dotfiles
# This one has been prone to problems, so run it first to save CI time
RUN ./setup.sh --install-alacritty
RUN ./setup.sh --install-miniconda
RUN ./setup.sh --set-up-bioconda
RUN ./setup.sh --install-neovim
RUN ./setup.sh --set-up-vim-plugins
# Don't know why yet, but the alias isn't sticking. But this installs plugins
# without interaction
RUN source ~/.bashrc; nvim +PlugInstall +qall
# Various installations using ./setup.sh
RUN ./setup.sh --install-autojump
RUN ./setup.sh --install-bat
RUN ./setup.sh --install-black
RUN ./setup.sh --install-fd
RUN ./setup.sh --install-fzf
RUN ./setup.sh --install-hub
RUN ./setup.sh --install-icdiff
RUN ./setup.sh --install-jq
RUN ./setup.sh --install-pyp
RUN ./setup.sh --install-radian
RUN ./setup.sh --install-ripgrep
RUN ./setup.sh --install-vd
# Additional for this container: asciinema for screen casts
RUN source ~/.bashrc \
pip install asciinema \
conda install -n base r-base ipython
ENTRYPOINT ["/bin/bash"]