feat: Install all npm dependencies in Dockerfile

This commit is contained in:
Paul Gauthier (aider) 2024-12-17 18:50:04 -08:00
parent 614d9c9b0d
commit 422fd11f4d

View file

@ -15,11 +15,20 @@ RUN apt-get update && apt-get install -y \
# Make python3.11 the default python3
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
# Install Node.js and Jest
# Install Node.js and dependencies
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/* && \
npm install -g jest
npm install -g \
jest \
@babel/core@7.25.2 \
@exercism/babel-preset-javascript@0.2.1 \
@exercism/eslint-config-javascript@0.6.0 \
@types/jest@29.5.12 \
@types/node@20.12.12 \
babel-jest@29.6.4 \
core-js@3.37.1 \
eslint@8.49.0
# Install Go
RUN curl -OL https://golang.org/dl/go1.21.5.linux-amd64.tar.gz && \