Skip to content

Instantly share code, notes, and snippets.

@cptpiepmatz
Created July 25, 2024 11:30
Show Gist options
  • Save cptpiepmatz/abf71e83569b401ad731eee813899b2a to your computer and use it in GitHub Desktop.
Save cptpiepmatz/abf71e83569b401ad731eee813899b2a to your computer and use it in GitHub Desktop.
Dockerfile for globally installing NPM packages. Specify the desired packages via the `PACKAGES` argument to easily set up your environment with Docker Compose.
ARG NODE_VERSION=latest
FROM node:${NODE_VERSION}
ARG PACKAGES
RUN npm install -g ${PACKAGES}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment