Deno -> Node :(
Build container / build (push) Successful in 6m13s

This commit is contained in:
maurice committed 2026-10-17 19:17:32 +02:00
1 parent 412bd78570
commit e2e62cf5c9
1 file changed
+13 -11
+13 -11
View File
@@ -50,10 +50,11 @@ RUN GO_VERSION=$(curl -sL "https://go.dev/VERSION?m=text" | head -n 1 | tr -d '\
GOBIN=/usr/local/bin go install golang.org/x/tools/gopls@latest && \
GOBIN=/usr/local/bin go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
# Deno
RUN export DENO_INSTALL=/usr/local/deno && \
curl -fsSL https://deno.land/install.sh | sh && \
ln -sf /usr/local/deno/bin/deno /usr/local/bin/deno
# pnpm & Node.js
ENV PNPM_HOME=/usr/local/share/pnpm
ENV PATH="${PNPM_HOME}/bin:${PATH}"
RUN curl -fsSL https://get.pnpm.io/install.sh | SHELL=/bin/bash sh -
RUN pnpm runtime set node latest -g
# Rust
RUN export RUSTUP_HOME=/usr/local/rust && \
@@ -108,13 +109,13 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
| php -- --install-dir=/usr/local/bin --filename=composer
# === install language servers, tools ===
RUN deno i -g -f -A --root /usr/local/bin \
npm:npm \
npm:bash-language-server \
npm:vscode-langservers-extracted \
npm:dockerfile-language-server-nodejs \
npm:typescript \
npm:typescript-language-server
RUN pnpm add -g \
npm \
bash-language-server \
vscode-langservers-extracted \
dockerfile-language-server-nodejs \
typescript \
typescript-language-server
RUN mkdir -p /usr/local/bin/python-bins/code-review-graph && \
pip install code-review-graph \
@@ -146,6 +147,7 @@ RUN dnf remove -y openssl-devel && \
# Rustup, Go dir is intended to remain writable by the development user.
RUN chown -R user:user /usr/local/rust && \
chown -R user:user "${PNPM_HOME}" && \
chown -R user:user /home/user/go
USER user