Coder Social home page Coder Social logo

centos7-nodejs's Introduction

Docker Images for Node.js Applications

Build Status

docker hub stats

Versions

Node.js versions currently provided:

  • 7.10.0: (7.10.0, 7, 7.10, current, latest)
  • 6.10.3: (6.10.3, 6, 6.10, lts, Boron)
  • 5.12.0: (5.12.0, 5, 5.12)
  • 4.8.3: (4.8.3, 4, 4.8, lts, Argon)

Usage

To use this image with Docker, place a Dockerfile in the root of your source repository that contains a single line:

FROM bucharestgold/centos7-nodejs:latest

You can then build and run your application with standard Docker commands.

$ cd my-app
$ docker build -t my-app .
$ docker run -p 8080:8080 my-app

This image can also be used with OpenShift. To do that, you'll still need the Dockerfile in the root of your source repository, then run:

$ cd myProject
$ oc new-build --binary --name=my-app -l app=myProject
$ npm install
$ oc start-build my-app --from-dir=. --follow
$ oc new-app my-app -l app=my-app
$ oc expose svc/my-app

Environment variables

Use the following environment variables to configure the runtime behavior of the application image created from this builder image.

NAME Description
NPM_RUN Select an alternate / custom runtime mode, defined in your package.json file's scripts section (default: npm run "start")
NPM_MIRROR Sets the npm registry URL
NODE_ENV Node.js runtime mode (default: "production")
HTTP_PROXY use an npm proxy during assembly
HTTPS_PROXY use an npm proxy during assembly

Building this repository

To build these images yourself is pretty easy.

Requirements - docker-squash

pip install docker-squash

Then just clone a copy of this repo to fetch the build sources:

$ git clone https://github.com/bucharest-gold/centos7-nodejs.git
$ cd centos7-nodejs
$ make all

centos7-nodejs's People

Contributors

lance avatar

Watchers

 avatar  avatar  avatar

centos7-nodejs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.