Spaces:
Running
Running
Commit
·
26cb7ad
verified
·
0
Parent(s):
feat: init code-server
Browse files- .gitattributes +35 -0
- Dockerfile +204 -0
- README.md +12 -0
.gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
Dockerfile
ADDED
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM archlinux:latest
|
2 |
+
|
3 |
+
RUN echo -e "[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf \
|
4 |
+
&& echo -e "[archlinuxcn]\nServer = https://mirrors.aliyun.com/archlinuxcn/\$arch" >> /etc/pacman.conf \
|
5 |
+
&& echo -e "[chaotic-aur]\nServer = https://geo-mirror.chaotic.cx/\$repo/\$arch" >> /etc/pacman.conf \
|
6 |
+
&& echo -e "[atri]\nServer = https://repo.apeiria.net/\$arch" >> /etc/pacman.conf
|
7 |
+
|
8 |
+
RUN pacman-key --init \
|
9 |
+
&& pacman-key --lsign-key "[email protected]" \
|
10 |
+
&& pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com \
|
11 |
+
&& pacman-key --lsign-key 3056513887B78AEB \
|
12 |
+
&& pacman-key --recv-keys 293B93D8A471059F85D716A65BA92099D9BE2DAA \
|
13 |
+
&& pacman-key --lsign-key 293B93D8A471059F85D716A65BA92099D9BE2DAA \
|
14 |
+
&& pacman -Sy --noconfirm archlinuxcn-keyring
|
15 |
+
|
16 |
+
RUN pacman -Syu --noconfirm yay
|
17 |
+
|
18 |
+
RUN yay -S --noconfirm \
|
19 |
+
aria2 \
|
20 |
+
base-devel \
|
21 |
+
clang \
|
22 |
+
cmake \
|
23 |
+
code-server \
|
24 |
+
code-server-marketplace \
|
25 |
+
curl \
|
26 |
+
deno \
|
27 |
+
direnv \
|
28 |
+
fisher \
|
29 |
+
fish \
|
30 |
+
gcc \
|
31 |
+
git \
|
32 |
+
git-lfs \
|
33 |
+
go \
|
34 |
+
intel-oneapi-basekit \
|
35 |
+
nix \
|
36 |
+
nodejs \
|
37 |
+
openblas64 \
|
38 |
+
openssh \
|
39 |
+
p7zip \
|
40 |
+
pkgconf \
|
41 |
+
pkgfile \
|
42 |
+
pypy \
|
43 |
+
python \
|
44 |
+
python-pip \
|
45 |
+
ruff \
|
46 |
+
rust \
|
47 |
+
rye \
|
48 |
+
screen \
|
49 |
+
tinygo \
|
50 |
+
unzip \
|
51 |
+
uv \
|
52 |
+
wget \
|
53 |
+
xmake \
|
54 |
+
zig \
|
55 |
+
zip \
|
56 |
+
&& yay -Scc --noconfirm \
|
57 |
+
&& rm -rf /var/cache/pacman/*
|
58 |
+
|
59 |
+
RUN aria2c -c -x16 https://hf-mirror.com/hfd/hfd.sh \
|
60 |
+
&& chmod a+x hfd.sh \
|
61 |
+
&& mv hfd.sh /usr/bin/hfd
|
62 |
+
|
63 |
+
RUN chsh -s /usr/bin/fish
|
64 |
+
|
65 |
+
RUN pkgfile --update
|
66 |
+
|
67 |
+
RUN git lfs install
|
68 |
+
|
69 |
+
RUN corepack prepare pnpm@latest \
|
70 |
+
&& corepack enable pnpm
|
71 |
+
|
72 |
+
RUN useradd -m -s /usr/bin/fish mzwing
|
73 |
+
|
74 |
+
USER mzwing
|
75 |
+
|
76 |
+
WORKDIR /home/mzwing
|
77 |
+
|
78 |
+
RUN mkdir -p /home/mzwing/.ssh
|
79 |
+
|
80 |
+
RUN plugins=( \
|
81 |
+
"danhper/fish-ssh-agent" \
|
82 |
+
"jethrokuan/z" \
|
83 |
+
"franciscolourenco/done" \
|
84 |
+
"jorgebucaran/autopair.fish" \
|
85 |
+
) \
|
86 |
+
&& for plugin in "${plugins[@]}"; do \
|
87 |
+
fish -c "fisher install $plugin"; \
|
88 |
+
done
|
89 |
+
|
90 |
+
RUN rye toolchain register /usr/bin/python \
|
91 |
+
&& rye toolchain register /usr/bin/pypy
|
92 |
+
|
93 |
+
RUN fish -c 'SHELL=/usr/bin/fish pnpm setup' \
|
94 |
+
&& fish -c 'SHELL=/usr/bin/fish pnpm -g add pnpm'
|
95 |
+
|
96 |
+
RUN fish -c 'SHELL=/usr/bin/fish pnpm setup' \
|
97 |
+
&& fish -c 'SHELL=/usr/bin/fish pnpm -g add pnpm'
|
98 |
+
|
99 |
+
RUN mkdir -p /home/mzwing/.config/code-server/ \
|
100 |
+
&& touch /home/mzwing/.config/code-server/config.yaml \
|
101 |
+
&& echo -e "bind-addr: 0.0.0.0:8080\nauth: password\ncert: false" > /home/mzwing/.config/code-server/config.yaml
|
102 |
+
|
103 |
+
RUN extensions=( \
|
104 |
+
"aaron-bond.better-comments" \
|
105 |
+
"ahmadalli.vscode-nginx-conf" \
|
106 |
+
"alefragnani.bookmarks" \
|
107 |
+
"aminer.codegeex" \
|
108 |
+
"antfu.browse-lite" \
|
109 |
+
"antfu.vite" \
|
110 |
+
"arrterian.nix-env-selector" \
|
111 |
+
"bbenoist.nix" \
|
112 |
+
"bierner.lit-html" \
|
113 |
+
"christian-kohler.npm-intellisense" \
|
114 |
+
"christian-kohler.path-intellisense" \
|
115 |
+
"claui.packaging" \
|
116 |
+
"codeium.codeium" \
|
117 |
+
"codezombiech.gitignore" \
|
118 |
+
"dart-code.dart-code" \
|
119 |
+
"dart-code.flutter" \
|
120 |
+
"davidanson.vscode-markdownlint" \
|
121 |
+
"dbaeumer.vscode-eslint" \
|
122 |
+
"denoland.vscode-deno" \
|
123 |
+
"donjayamanne.githistory" \
|
124 |
+
"eamodio.gitlens" \
|
125 |
+
"editorconfig.editorconfig" \
|
126 |
+
"esbenp.prettier-vscode" \
|
127 |
+
"fill-labs.dependi" \
|
128 |
+
"formulahendry.auto-close-tag" \
|
129 |
+
"formulahendry.auto-rename-tag" \
|
130 |
+
"gera2ld.markmap-vscode" \
|
131 |
+
"get-snippets.get-snippets" \
|
132 |
+
"github.codespaces" \
|
133 |
+
"github.copilot" \
|
134 |
+
"github.copilot-chat" \
|
135 |
+
"github.remotehub" \
|
136 |
+
"github.vscode-github-actions" \
|
137 |
+
"golang.go" \
|
138 |
+
"graphql.vscode-graphql-syntax" \
|
139 |
+
"gruntfuggly.todo-tree" \
|
140 |
+
"jeff-hykin.better-dockerfile-syntax" \
|
141 |
+
"jnoortheen.nix-ide" \
|
142 |
+
"justjavac.vscode-deno-extensionpack" \
|
143 |
+
"laurencebahiirwa.deno-std-lib-snippets" \
|
144 |
+
"lit.lit-snippets" \
|
145 |
+
"matthewpi.caddyfile-support" \
|
146 |
+
"mechatroner.rainbow-csv" \
|
147 |
+
"mhutchie.git-graph" \
|
148 |
+
"mirone.milkdown" \
|
149 |
+
"misterj.vue-volar-extention-pack" \
|
150 |
+
"mkhl.direnv" \
|
151 |
+
"mrmlnc.vscode-json5" \
|
152 |
+
"ms-dotnettools.csdevkit" \
|
153 |
+
"ms-dotnettools.csharp" \
|
154 |
+
"ms-dotnettools.vscode-dotnet-runtime" \
|
155 |
+
"ms-dotnettools.vscodeintellicode-csharp" \
|
156 |
+
"ms-python.black-formatter" \
|
157 |
+
"ms-python.debugpy" \
|
158 |
+
"ms-python.python" \
|
159 |
+
"ms-python.vscode-pylance" \
|
160 |
+
"ms-toolsai.jupyter" \
|
161 |
+
"ms-toolsai.jupyter-keymap" \
|
162 |
+
"ms-toolsai.jupyter-renderers" \
|
163 |
+
"ms-toolsai.vscode-jupyter-cell-tags" \
|
164 |
+
"ms-toolsai.vscode-jupyter-slideshow" \
|
165 |
+
"ms-vscode.azure-repos" \
|
166 |
+
"ms-vscode.cmake-tools" \
|
167 |
+
"ms-vscode.cpptools" \
|
168 |
+
"ms-vscode.cpptools-extension-pack" \
|
169 |
+
"ms-vscode.cpptools-themes" \
|
170 |
+
"ms-vscode.remote-repositories" \
|
171 |
+
"msyrus.go-doc" \
|
172 |
+
"njpwerner.autodocstring" \
|
173 |
+
"oderwat.indent-rainbow" \
|
174 |
+
"pinage404.nix-extension-pack" \
|
175 |
+
"redhat.vscode-xml" \
|
176 |
+
"redhat.vscode-yaml" \
|
177 |
+
"rickyang.ocopilot" \
|
178 |
+
"rust-lang.rust-analyzer" \
|
179 |
+
"rxliuli.tsx" \
|
180 |
+
"saoudrizwan.claude-dev" \
|
181 |
+
"sibiraj-s.vscode-scss-formatter" \
|
182 |
+
"swellaby.rust-pack" \
|
183 |
+
"syler.sass-indented" \
|
184 |
+
"tabnine.tabnine-vscode" \
|
185 |
+
"tamasfe.even-better-toml" \
|
186 |
+
"timonwong.shellcheck" \
|
187 |
+
"twxs.cmake" \
|
188 |
+
"visualstudioexptteam.intellicode-api-usage-examples" \
|
189 |
+
"visualstudioexptteam.vscodeintellicode" \
|
190 |
+
"visualstudioexptteam.vscodeintellicode-completions" \
|
191 |
+
"vitaliymaz.vscode-svg-previewer" \
|
192 |
+
"vitest.explorer" \
|
193 |
+
"vue.volar" \
|
194 |
+
"wayou.vscode-todo-highlight" \
|
195 |
+
) \
|
196 |
+
&& for extension in "${extensions[@]}"; do \
|
197 |
+
code-server --config /home/mzwing/.config/code-server/config.yaml --install-extension "$extension"; \
|
198 |
+
done
|
199 |
+
|
200 |
+
RUN code-server --config /home/mzwing/.config/code-server/config.yaml --uninstall-extension "serayuzgur.crates"
|
201 |
+
|
202 |
+
EXPOSE 8080
|
203 |
+
|
204 |
+
CMD ["code-server", "--config", "/home/mzwing/.config/code-server/config.yaml"]
|
README.md
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Code Server
|
3 |
+
emoji: 👀
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: blue
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
license: mit
|
9 |
+
short_description: code-server on Arch Linux
|
10 |
+
app_port: 8080
|
11 |
+
---
|
12 |
+
code-server on Arch Linux.
|