Last active
July 23, 2022 14:35
-
-
Save malkab/a273207ffc1666dafa8cd5058ba89fdf to your computer and use it in GitHub Desktop.
Docker - Basic Node Run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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