Skip to content

Instantly share code, notes, and snippets.

@lirantal
Last active August 28, 2023 11:06
Show Gist options
  • Save lirantal/aed21b0840c0806eb4b642faacbe95b4 to your computer and use it in GitHub Desktop.
Save lirantal/aed21b0840c0806eb4b642faacbe95b4 to your computer and use it in GitHub Desktop.
node-sandbox

The following creates a container with a mounted volume so it can be used as a sandbox that doesn't expose your local development environment incase of any rogue npm packages that steal your .npmrc token, environment variables and others

Run the following:

docker run --volume ./:/opt/app --rm -it --name nodesandbox node:18-bullseye /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment