Skip to content

Commit 90c06c6

Browse files
committed
fix(editor-server): Fix archlinux.
1 parent f25e2f1 commit 90c06c6

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docker/editor-server/Dockerfile.arch

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ RUN pacman -Syyu --noconfirm nodejs-lts-hydrogen npm pnpm yarn npm-check-updates
5858
&& npm install -g @microsoft/rush \
5959
&& echo "export NODE_PATH=$NODE_PATH" | tee -a "/etc/zsh/zshenv"
6060

61-
RUN yay -Syyu --noconfirm ts-node
62-
6361
# install golang
6462
ARG GO111MODULE=on
6563
ARG GOPATH=/opt/go
@@ -83,6 +81,24 @@ RUN pacman -Syyu --noconfirm go \
8381
&& go env -w GOPROXY=https://goproxy.io,direct \
8482
&& chown -R coder:coder "${GOPATH}"
8583

84+
# install rust
85+
ARG RUSTPATH=/opt/rust
86+
ENV RUSTUP_HOME=${RUSTPATH}
87+
ENV CARGO_HOME=${RUSTPATH}
88+
RUN export RUSTUP_HOME=${RUSTPATH} \
89+
&& export CARGO_HOME=${RUSTPATH} \
90+
&& echo "export PATH=\${PATH}:${RUSTPATH}/bin" | tee -a "/etc/zsh/zshenv" \
91+
&& echo "export RUSTUP_HOME=${RUSTPATH}" | tee -a "/etc/zsh/zshenv" \
92+
&& echo "export CARGO_HOME=${RUSTPATH}" | tee -a "/etc/zsh/zshenv" \
93+
&& pacman -Syyu --noconfirm rustup \
94+
&& rustup target default \
95+
&& rustup target add wasm32-unknown-unknown \
96+
&& cargo install difftastic \
97+
&& cargo install cargo-generate \
98+
&& cargo install wasm-pack \
99+
&& cargo install trunk wasm-bindgen-cli \
100+
&& chown -R coder:coder "${RUSTPATH}"
101+
86102
# install python
87103
RUN pacman -Syyu --noconfirm python python-pip
88104

@@ -92,13 +108,16 @@ RUN pacman -Syyu --noconfirm jdk17-openjdk
92108
# install php
93109
RUN pacman -Syyu --noconfirm php
94110

111+
# install php
112+
RUN pacman -Syyu --noconfirm erlang elixir
113+
95114
# install ruby
96115
RUN pacman -Syyu --noconfirm ruby && gem install bundler jekyll jekyll-remote-theme
97116

98117
# install flutter
99118
ARG PUB_CACHE=/opt/flutter/.pub
100119
ENV PUB_CACHE=/opt/flutter/.pub
101-
RUN yay -Syyu --noconfirm flutter dart \
120+
RUN pacman -Syyu --noconfirm flutter dart \
102121
&& echo "export PATH=\"\$PATH\":\"$PUB_CACHE/bin\"" | tee -a "/etc/zsh/zshenv" \
103122
&& dart pub global activate mason_cli \
104123
&& dart pub global activate melos

0 commit comments

Comments
 (0)