-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (36 loc) · 990 Bytes
/
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
# syntax=docker/dockerfile:1.4-labs
from debian:stable
run apt update
# arm related
run <<EOF
apt install -y gcc-arm-linux-gnueabi qemu qemu-user qemu-system-arm make
ln -s /usr/arm-linux-gnueabi/lib/ld-linux.so.3 /lib/
EOF
# config zsh
run <<EOF
apt install -y zsh git curl
chsh -s /bin/zsh
mkdir -p /usr/share/zsh/plugins/fast-syntax-highlighting
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting /usr/share/zsh/plugins/fast-syntax-highlighting
mkdir -p /root/.cache/zsh
EOF
copy ./zshrc /root/.zshrc
# config vim
run <<EOF
apt install -y vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
EOF
copy ./vimrc /root/.vimrc
run vim +PlugInstall +qall
# config tmux
run apt install -y tmux
copy ./tmux.conf /root/.tmux.conf
# debugger
run apt install -y gdb-multiarch
copy ./gdbinit /root/.gdbinit
# extras
run apt install -y man file
workdir /root
env TERM="xterm-256color"
cmd ["zsh"]