This need to be created directly in folder of this project
docker build . --no-cache -t node-js
echo 'alias node-docker="docker run --rm --interactive --tty --volume \$PWD:/app -p 0.0.0.0:80:4000 --user \$(id -u):\$(id -g) node-js"' >> ~/.bashrc
echo 'alias angular-docker="docker run --rm --interactive --tty --volume \$PWD:/app -p 0.0.0.0:80:4200 --user \$(id -u):\$(id -g) node-js"' >> ~/.bashrc
echo 'alias ionic-docker="docker run --rm --interactive --tty --volume \$PWD:/app -p 0.0.0.0:80:8100 --user \$(id -u):\$(id -g) node-js"' >> ~/.bashrc
echo 'alias ionic-docker-ssl="docker run --rm --interactive --tty --volume \$PWD:/app -p 0.0.0.0:443:8100 --user \$(id -u):\$(id -g) node-js"' >> ~/.bashrc
echo 'alias react-docker="docker run --rm --interactive --tty --volume \$PWD:/app --user \$(id -u):\$(id -g) -p 0.0.0.0:80:3000 node-js"' >> ~/.bashrc
echo 'alias vue-docker="docker run --rm --interactive --tty --volume \$PWD:/app --user \$(id -u):\$(id -g) -p 0.0.0.0:80:8080 node-js"' >> ~/.bashrc
echo 'alias node-docker-cmd="docker run --rm --interactive --tty --volume \$PWD:/app --user \$(id -u):\$(id -g) node-js"' >> ~/.bashrc
node-docker-cmd npm install
node-docker npm start
http://0.0.0.0
Command can be used in any folder, but will create project in subfolder of that location Ex. if you are in folder my-app, application will be in my-project/my-project folder
node-docker-cmd ng new my-project
Go to my-project folder and run the server
angular-docker ng serve --host 0.0.0.0 --port 4200 --disable-host-check
node-docker-cmd ng test
node-docker-cmd ng e2e
Command can be used in any folder, but will create project in subfolder of that location Ex. if you are in folder my-app, application will be in my-project/my-project folder
node-docker-cmd ionic start myApp sidemenu
Go to my-project folder and run the server
ionic-docker ionic serve --host=0.0.0.0
for SSL version
ionic-docker-ssl ionic serve --host=0.0.0.0 --ssl
Command can be used in any folder, but will create project in subfolder of that location Ex. if you are in folder my-app, application will be in my-app/my-app folder
node-docker-cmd create-react-app my-app
# or
node-docker-cmd yarn create react-app my-app
Go to my-app folder and run the server
react-docker yarn start