[FIX] Use pnpm with managed Node.js for rtlcss
Use `pnpm env use --global lts` to install Node.js via pnpm, ensuring both Node.js and rtlcss are available at runtime without replacing pnpm with apt nodejs/npm. Fixes #63 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
952d202a32
commit
f26d17f973
1 file changed
+9
-5
@@ -129,11 +129,15 @@ RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' > /et
|
||||
&& rm -f /etc/apt/sources.list.d/pgdg.list \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Node.js and rtlcss
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends nodejs npm && \
|
||||
npm install -g rtlcss && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
# Install pnpm
|
||||
RUN curl -fsSL https://get.pnpm.io/install.sh | SHELL=/bin/bash bash -
|
||||
|
||||
# Add pnpm to PATH
|
||||
ENV PNPM_HOME="/root/.local/share/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
|
||||
# Install Node.js via pnpm and install rtlcss globally
|
||||
RUN pnpm env use --global lts && pnpm install -g rtlcss
|
||||
|
||||
# Install uv for Python package management
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.7.21 /uv /uvx /bin/
|
||||
|
||||
Reference in new issue
Block a user