Giter Club home page Giter Club logo

nodejs-docker's Introduction

Google Cloud Platform Node.js Docker Image

Build Status

This repository contains the source for the gcr.io/google_appengine/nodejs docker image. This image can be used as the base image for running applications on Google App Engine Managed VMs, Google Container Engine, or any other Docker host.

This image is based on Debian Jessie and includes nodejs and npm installed from nodejs.org.

App Engine

To generate a Dockerfile that uses this image as a base, use the Cloud SDK:

gcloud preview app gen-config --custom 

You can then modify the Dockerfile and .dockerignore as needed for you application.

Container Engine & other Docker hosts.

For other docker hosts, you'll need to create a Dockerfile based on this image that copies your application code and installs dependencies. For example:

    FROM gcr.io/google_appengine/nodejs

    # Copy application code.
    COPY . /app/

    # Install dependencies.
    RUN npm --unsafe-perm install

By default, the CMD is set to npm start. You can change this by specifying your own CMD or ENTRYPOINT.

Installing a different Node.js version

The image includes the install_node script that can be used to install a particular Node.js version. For example:

    FROM gcr.io/google_appengine/nodejs

    # Install node.js 0.12.7
    RUN install_node v0.12.7

    # Copy application code.
    COPY . /app/

    # Install dependencies.
    RUN npm --unsafe-perm install

Node.js is installed with binary packages hosted on a Google-provided mirror.

Contributing changes

Licensing

nodejs-docker's People

Contributors

calvinmetcalf avatar dlorenc avatar eamonnmcmanus avatar justinbeckwith avatar kyleamathews avatar langri-sha avatar mindhog avatar ofrobots avatar proppy avatar raggi avatar rata avatar rrch avatar vvo avatar

Watchers

 avatar  avatar  avatar

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.