version: '3.8'

services:
  npm:
    profiles:
      - dev tools
    image: node:${NODE_VERSION:-14}
    entrypoint: npm
    command: ci
    environment:
      NPM_CONFIG_LOGLEVEL: warn
    volumes:
      - npm:/root
      - .:/app
    working_dir: /app

volumes:
  npm:
