-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (52 loc) · 1.41 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
FROM archlinux:base-devel
RUN pacman -Syu --noconfirm \
sudo \
gettext \
cmake \
zip \
unzip \
curl \
wget \
jq \
less \
htop \
bottom \
lsof \
fish \
fzf \
fzy \
tmux \
git \
git-lfs \
neovim \
ripgrep \
fd \
procs \
dust \
exa \
bat \
starship \
tree-sitter \
tree-sitter-cli \
&& locale-gen en_US.UTF-8
RUN git lfs install --system --skip-repo
RUN useradd -l -u 33333 -G wheel -md /home/gitpod -s /bin/bash -p gitpod gitpod
# configure the basics with user
USER gitpod
ENV HOME=/home/gitpod
WORKDIR $HOME
RUN mkdir -p $HOME/.config/fish/conf.d \
&& mkdir -p $HOME/.config/fish/completions
# install node tools
RUN curl -fsSL https://fnm.vercel.app/install | bash
ENV PATH=$HOME/.local/share/fnm:$PATH
RUN fnm install v20 && fnm default v20 \
&& printf '%s\n' 'fnm env --use-on-cd | source' > $HOME/.config/fish/conf.d/fnm.fish \
&& fish -c 'fish_add_path $HOME/.local/share/fnm'
# && fnm completions --shell=fish > $HOME/.config/fish/completions/fnm.fish \
# configure fish
RUN mkdir -p $HOME/local/share/fonts \
&& cd $HOME/local/share/fonts \
&& curl -fLO https://github.com/ryanoasis/nerd-fonts/raw/HEAD/patched-fonts/FiraMono/Regular/FiraMonoNerdFont-Regular.otf \
&& printf '%s\n' 'starship init fish | source' > $HOME/.config/fish/conf.d/starship.fish
ENV SHELL=/usr/bin/fish