Sign inSign up

luissalgadofreire/nginx-node

By luissalgadofreire

Updated about 9 years ago

TBC

Image
0

704

luissalgadofreire/nginx-node repository overview

About this Repo

The main image in this repo creates an environment for angular 2 projects where packages can be arbitrarily installed with npm, using a package-json file.

It also includes nginx to serve static files in a closer to production environment.

Image Variants

There are four image variants in the repo:

nginx-node:4.x

This image:

  1. Installs nginx using its official image.
  2. Installs additional package dependencies.
  3. Installs node.js version 4.x.
nginx-node:4.x-onbuild

This image expects folders nginx/ and angular/ as well as a package.json file to be located in the same directory as the Dockerfile referencing this image. It:

  1. Creates directory /usr/src/app in the target container.
  2. Sets the above directory as the working directory.
  3. Installs all packages from your package.json file using npm.
  4. Copies all content under nginx/ to /etc/nginx.
  5. Copies all content under angular/ to /usr/src/app.
  6. Finally, runs npm run-script deploy: the deploy script is expected to be defined in your package.json.
nginx-node:6.x

This image is equivalent to image nginx-node:4.x but for node 6.x.

nginx-node:6.x-onbuild

This image is equivalent to image nginx-node:4.x-onbuild but for node 6.x.

nginx-node:8.x

This image is equivalent to image nginx-node:6.x but for node 8.x.

nginx-node:8.x-onbuild

This image is equivalent to image nginx-node:6.x-onbuild but for node 8.x.

Tag summary

Content type

Image

Digest

Size

143.4 MB

Last updated

about 9 years ago

docker pull luissalgadofreire/nginx-node:8.x