blob: 0a08f75133cb5bfc73a0a75ed055b5afb29a3bb5 (
plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
FROM registry.fedoraproject.org/fedora-toolbox:latest
ARG NAME=toolbox
LABEL name="$NAME" \
summary="Fedora toolbox container" \
maintainer="TheSiahxyz"
ENV EDITOR=nvim
ENV NODE_VERSION=21.7.1
ENV BASE_USER=si
ENV PASSWORD=password
ENV HOME=/home/$BASE_USER
RUN dnf update && dnf -y upgrade && dnf -y install sudo
RUN useradd -m -G wheel $BASE_USER
RUN echo "$BASE_USER:$PASSWORD" | chpasswd
RUN echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER $BASE_USER
WORKDIR /home/$BASE_USER
ENV PATH=$PATH:$HOME/go/bin:$HOME/.local/share/nvim/mason/bin:$HOME/.cargo/bin
RUN sudo dnf -y upgrade \
&& sudo dnf -y install \
tmux \
ruby \
php-common \
php-cli \
luarocks \
curl \
python3 \
python3-pip \
java-latest-openjdk-devel \
ripgrep \
fd-find \
git \
neovim \
golang \
cargo \
composer \
julia-devel \
lua5.1 \
stow \
&& sudo dnf clean all
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
ENV NVM_DIR="$HOME/.nvm"
RUN . $HOME/.nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSON \
&& nvm use default \
&& . $HOME/.nvm/bash_completion
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
RUN pip3 install pynvim
RUN mkdir $HOME/.npm-global && npm config set prefix '~/.npm-global' \
&& echo "export PATH=$HOME/.npm-global/bin:$PATH" >> $HOME/.profile && source $HOME/.profile
RUN npm install -g neovim
RUN go install github.com/jesseduffield/lazygit@latest
RUN cargo install tree-sitter-cli
RUN git clone https://github.com/TheSiahxyz/.dotfiles.git
RUN npm install -g eslint_d
RUN nvim --headless "+Lazy! sync" +qa
RUN nvim --headless "+MasonInstall codelldb delve gopls clangd lua-language-server pyright rust-analyzer typescript-language-server eslint_d flake8 black gofumpt prettier stylua clang-format" +qa
RUN sudo cp -f /usr/bin/lua-5.1 /usr/bin/lua
RUN sudo rm -rf /usr/lib64/nvim/parser
RUN sudo luarocks install jsregexp
COPY ./.tmux.conf /home/$BASE_USER/.tmux.conf
RUN sudo chown si:si /home/$BASE_USER/.tmux.conf
RUN wget -P ~/.local/share/fonts https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.zip \
&& cd ~/.local/share/fonts \
&& unzip FiraCode.zip \
&& rm FiraCode.zip \
&& fc-cache -fv
RUN cargo install starship --locked \
&& echo 'eval "$(starship init bash)"' >> ~/.bashrc
CMD tmux
|