From f26d17f973b1c03cdfaca2f960d5caee7ae13d4a Mon Sep 17 00:00:00 2001 From: Mohamed Yosef Date: Tue, 28 Apr 2026 13:27:19 +0300 Subject: [PATCH] [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) --- images/odoo/Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/images/odoo/Dockerfile b/images/odoo/Dockerfile index aa541f77..6efc5d81 100644 --- a/images/odoo/Dockerfile +++ b/images/odoo/Dockerfile @@ -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/