-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase.Dockerfile
50 lines (44 loc) · 1.25 KB
/
base.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
FROM ubuntu:23.04
RUN apt-get update && apt-get install -y \
adduser \
bat \
cmake \
curl \
dumb-init \
fd-find \
fish \
fzf \
gcc \
git \
make \
nodejs \
npm \
python3 \
python3-pynvim \
python3-venv \
ranger \
ripgrep \
rsync \
stow \
sudo \
ssh \
sshpass \
tmux \
unzip \
uuid-runtime \
&& rm -rf /var/lib/apt/lists/* && \
npm install -g trzsz && \
chsh -s /usr/bin/fish ubuntu && \
addgroup wheel && adduser ubuntu wheel && echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/wheel
USER ubuntu
WORKDIR /work
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["fish"]
COPY --chown=ubuntu:ubuntu ./stow-dotfiles /home/ubuntu/.dotfiles
RUN cd /home/ubuntu/.dotfiles && stow -t /home/ubuntu -R *
RUN fish -c 'curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install PatrickF1/fzf.fish'
# The "sleep *" is a workaround for https://github.com/nvim-treesitter/nvim-treesitter/issues/2900
RUN curl -L https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.tar.gz | sudo tar zxf - -C /usr/local/ --strip-components=1 && \
nvim --headless +"Lazy restore" +"TSUpdateSync" +"MasonUpdate" \
+"MasonInstall pyright" +"MasonInstall black" +"MasonInstall clangd" \
+"sleep 20" +qall