Package for running your frontend code on a Docker container during development.
NOTE: the command has been changed from
- Docker 1.0.1
Could work with other versions
npm install -g dock2port
When will this be useful?
When you have multiple projects on the same machine and you want to run them
simultaneously. All you have to do is to specify a unique port and your
index.html file will be supplied by Nginx in a Docker container.
- You're standing in a folder containing an
- You don't have any of these files in the folder:
nginx.conf. Otherwise they will be overwritten.
Then, all you have to do is to run:
NOTE: by default the port is set to
Run the tests
Mattias Eriksson email@example.com