dockerize-nginx

1.0.2 • Public • Published

Feature

Prerequisite

Install

Install with npm:

npm i -D dockerize-nginx

Get Started

Add following to npm scripts

{
  "scripts": {
    "dockerize": "dockerize"
  }
}

It will copy the contents of the dist/ directory to the /usr/share/nginx/html directory in the image.

Configuration

These arguments are supported on the command line:

argument alias default description
distDir o dist Output directory of SPA application
imageName t ${npm_package_name}:${npm_package_version} Name and optionally a container tag (format: "name:tag")
writeDockerIgnore w false Whether to generate a .dockerignore file in the root directory

Readme

Keywords

Package Sidebar

Install

npm i dockerize-nginx

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.7 kB

Total Files

5

Last publish

Collaborators

  • xezzon