Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#13 from proppy/master
Browse files Browse the repository at this point in the history
runtime: rename to nodejs-runtime
  • Loading branch information
proppy committed May 30, 2014
2 parents c54a180 + d25d379 commit 0e9d724
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ nodejs-docker
=============

This repository contains the sources for the following [docker](https://docker.io) base images:
- [`google/runtime-nodejs`](/runtime)
- [`google/nodejs`](/base)
- [`google/nodejs-runtime`](/runtime)
2 changes: 1 addition & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM google/debian:wheezy

RUN apt-get update && apt-get install --no-install-recommends -y -q curl python build-essential git
RUN apt-get update -y && apt-get install --no-install-recommends -y -q curl python build-essential git
RUN mkdir /nodejs && curl https://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x64.tar.gz | tar xvzf - -C /nodejs --strip-components=1

ENV PATH $PATH:/nodejs/bin
22 changes: 11 additions & 11 deletions runtime/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# google/runtime-nodejs
# google/nodejs-runtime

[`google/runtime-nodejs`](https://index.docker.io/u/google/runtime-nodejs) is a [docker](https://docker.io) base image for easily running [nodejs](https://nodejs.org) application.
[`google/nodejs-runtime`](https://index.docker.io/u/google/nodejs-runtime) is a [docker](https://docker.io) base image for easily running [nodejs](https://nodejs.org) application.

It is based on [`google/nodejs`](https://index.docker.io/u/google/nodejs) base image.

## Usage

- Create a Dockerfile in your nodejs application directory with the following content:

FROM google/runtime-nodejs
FROM google/nodejs-runtime

- Run the following command in your application directory:

Expand All @@ -26,15 +26,15 @@ The image assumes that your application:

`package.json`


{
"name": "app",
"version": "0.0.0",
"description": "a nodejs app",
"dependencies": {
"googleapis": "0.7.0"
},
"scripts": {"start": "node app.js"}
"name": "hello-world",
"description": "hello world test app",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "3.x"
},
"scripts": {"start": "node app.js"}
}

When building your application docker image, dependencies listed in `package.json` are fetched and properly cached.

0 comments on commit 0e9d724

Please sign in to comment.