-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbase-tlinux.Dockerfile
More file actions
61 lines (53 loc) · 1.96 KB
/
base-tlinux.Dockerfile
File metadata and controls
61 lines (53 loc) · 1.96 KB
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
FROM mirrors.tencent.com/tlinux/tlinux3.3
# Install required packages
RUN dnf install -y \
ccache \
cmake \
curl \
dumb-init \
fd-find \
fzf \
gcc \
git \
git-lfs \
glog-devel \
make \
ninja-build \
openssh-clients \
python39 \
python39-devel \
ripgrep \
rsync \
sshpass \
stow \
protobuf-compiler \
protobuf-devel \
tmux \
unzip \
which \
zoxide \
&& dnf clean all && \
update-alternatives --set python3 /usr/bin/python3.9 && \
npm install -g trzsz neovim
WORKDIR /data/chengke
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["fish"]
COPY ./stow-dotfiles /root/.dotfiles
RUN cd /root/.dotfiles && stow -t /root -R *
# https://nodejs.org/dist/v24.4.0/node-v24.4.0-linux-x64.tar.xz
# tar -xJvf node-v24.4.0-linux-x64.tar.xz --strip-components=1 -C /usr/local
# npm install -g @anthropic-ai/claude-code @musistudio/claude-code-router
# Install and setup fish
RUN curl -L https://github.com/fish-shell/fish-shell/releases/download/4.0.2/fish-static-amd64-4.0.2.tar.xz | tar -xJvC /usr/bin && \
fish -c 'curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install PatrickF1/fzf.fish'
# Install yazi
RUN sh -c 'TEMP_DIR=$(mktemp -d); echo "$TEMP_DIR"; \
ZIP_FILE="$TEMP_DIR/yazi.zip"; \
curl -L https://github.com/sxyazi/yazi/releases/download/v25.5.31/yazi-x86_64-unknown-linux-musl.zip -o "$ZIP_FILE" && \
unzip "$ZIP_FILE" -d "$TEMP_DIR" && \
cp "${TEMP_DIR}/yazi-x86_64-unknown-linux-musl/ya" /usr/local/bin/ && \
cp "${TEMP_DIR}/yazi-x86_64-unknown-linux-musl/yazi" /usr/local/bin/ && \
rm -rf "$TEMP_DIR"'
# Install Neovim and required tools
RUN curl -L https://github.com/neovim/neovim-releases/releases/download/v0.11.2/nvim-linux-x86_64.tar.gz | tar zxf - -C /usr/local/ --strip-components=1
# nvim --headless +"Lazy restore" +"TSUpdateSync" +"Mason" +"MasonInstall pyright" +"MasonInstall black" +"MasonInstall clangd"