Skip to content

Instantly share code, notes, and snippets.

@malkab
Last active July 23, 2022 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malkab/a273207ffc1666dafa8cd5058ba89fdf to your computer and use it in GitHub Desktop.
Save malkab/a273207ffc1666dafa8cd5058ba89fdf to your computer and use it in GitHub Desktop.
Docker - Basic Node Run
#!/bin/bash
# -----------------------------------------------------------------
#
# Runs an interactive Node container.
#
# -----------------------------------------------------------------
docker run -ti --rm \
--name libwk32_node_dev \
--hostname libwk32_node_dev \
--network host \
--user 1000:1000 \
-v $(pwd)/../:$(pwd)/../ \
--workdir $(pwd)/../node \
-e NODE_ENV=development \
-e NODE_MEMORY=2GB \
-v /home/malkab/.npmrc:/root/.npmrc \
-v /home/malkab/.npmrc:/home/node/.npmrc \
malkab/nodejs-dev:16.13.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment