The darthjee/circleci_node image is a CircleCI-optimized Docker image with Node.js 22, built on top of the cimg/node image. It is the CircleCI counterpart of darthjee/node, designed to run tests for Node.js projects on circleci.com; both images pre-cache the same packages.
It runs as the circleci user, and its working directory is /home/circleci/project, owned by circleci.
The cimg/node base already provides yarn, npm, git and the usual CircleCI tooling.
The image ships a warm yarn cache: a set of commonly used packages is pre-cached, so that when a project's yarn install asks for them they are resolved from the cache instead of being downloaded.
The following packages are pre-cached in the yarn cache at /home/circleci/.cache/yarn/v6/. This is yarn's default cache dir for the circleci user, so nothing has to be configured. They are not installed into any node_modules; they are used when a project's package.json asks for them and yarn install is run.
expressunderscoreexpress-generatorsasseslinteslint-config-standardeslint-plugin-complexityeslint-plugin-importeslint-plugin-jasmineeslint-plugin-neslint-plugin-promiseeslint-plugin-reacteslint-plugin-react-hooksjasminenycplatoThis image is intended to be used in CircleCI pipelines of Node.js projects (see the available tags at https://hub.docker.com/r/darthjee/circleci_node/tags).
As the CircleCI job executor image, in your .circleci/config.yml:
jobs:
test:
docker:
- image: darthjee/circleci_node:<version>
steps:
- checkout
- run: yarn install
- run: yarn test
As a base for projects building their own CI image on top of it, in your Dockerfile:
FROM darthjee/circleci_node:<version>
COPY package.json /home/circleci/project/
RUN yarn install
Child Dockerfiles run as circleci. Switch to USER root for system-level installs (e.g. apt-get), then back to USER circleci, as darthjee/circleci_node_mongo does.
In both cases, yarn install resolves the pre-cached packages from the warm yarn cache instead of downloading them, which speeds up CI pipelines.
See the LICENSE file for more information.
Content type
Image
Digest
sha256:dc19845f2…
Size
507.9 MB
Last updated
4 days ago
docker pull darthjee/circleci_node