Skip to content

Commit 4853c58

Browse files
committed
Use yarn for docker
1 parent c92fa42 commit 4853c58

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

DockerFile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ RUN $CARGO_HOME/bin/rustup target add \
4343
i686-linux-android \
4444
x86_64-linux-android
4545

46-
# Install a Node.js runtime (e.g., Bun, or use Node/NPM if preferred)
47-
# Replace this section with your preferred runtime installation (npm, yarn, pnpm)
48-
RUN curl -fsSL https://bun.sh/install | bash
49-
ENV PATH="/root/.bun/bin:$PATH"
46+
# Install Node.js 22 LTS and Yarn (global)
47+
# Use NodeSource for up-to-date Node on Debian; then install Yarn 1.x globally
48+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
49+
&& apt-get update \
50+
&& apt-get install -y --no-install-recommends nodejs \
51+
&& npm i -g [email protected] \
52+
&& rm -rf /var/lib/apt/lists/*
5053

5154
# --- Install Android SDK/NDK ---
5255
# Download the Android SDK command line tools

0 commit comments

Comments
 (0)