feat: Install npm packages in /npm-install directory

This commit is contained in:
Paul Gauthier (aider) 2024-12-17 19:01:24 -08:00
parent ba289f6db4
commit 4167743a34

View file

@ -19,9 +19,10 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \ apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
mkdir -p /npm-install && \
# install these in /npm-install ai! cd /npm-install && \
npm install -g \ npm init -y && \
npm install \
jest \ jest \
@babel/core@7.25.2 \ @babel/core@7.25.2 \
@exercism/babel-preset-javascript@0.2.1 \ @exercism/babel-preset-javascript@0.2.1 \