Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

dock2port

1.0.0 • Public • Published

Package for running your frontend code on a Docker container during development.

NOTE: the command has been changed from frontend-docker to dock2port

Dependencies

  • Docker 1.0.1

Could work with other versions

Install

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.

Usage

Make sure:

  • You're standing in a folder containing an index.html file.
  • You don't have any of these files in the folder: Dockerfile, fig.yml or nginx.conf. Otherwise they will be overwritten.

Then, all you have to do is to run: dock2port <PORT>

NOTE: by default the port is set to 5000.

Run the tests

npm test

Contact

Mattias Eriksson thematerik@gmail.com

install

npm i dock2port

Downloadsweekly downloads

2

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar