Merge pull request #374 from Starefossen/docs/node-4-examples
Use node:4 image tag for Node.js examples
This commit is contained in:
commit
abbe92a451
|
|
@ -15,7 +15,7 @@ Node.js internally uses the Google V8 JavaScript engine to execute code; a large
|
||||||
## Create a `Dockerfile` in your Node.js app project
|
## Create a `Dockerfile` in your Node.js app project
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM node:0.10-onbuild
|
FROM node:4-onbuild
|
||||||
# replace this with your application's default port
|
# replace this with your application's default port
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
```
|
```
|
||||||
|
|
@ -36,5 +36,5 @@ The image assumes that your application has a file named [`package.json`](https:
|
||||||
For many simple, single file projects, you may find it inconvenient to write a complete `Dockerfile`. In such cases, you can run a Node.js script by using the Node.js Docker image directly:
|
For many simple, single file projects, you may find it inconvenient to write a complete `Dockerfile`. In such cases, you can run a Node.js script by using the Node.js Docker image directly:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp node:0.10 node your-daemon-or-script.js
|
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/app -w /usr/src/app node:4 node your-daemon-or-script.js
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ declare -A otherRepos=(
|
||||||
[haskell]='https://github.com/freebroccolo/docker-haskell'
|
[haskell]='https://github.com/freebroccolo/docker-haskell'
|
||||||
[hipache]='https://github.com/dotcloud/hipache'
|
[hipache]='https://github.com/dotcloud/hipache'
|
||||||
[hylang]='https://github.com/hylang/hy'
|
[hylang]='https://github.com/hylang/hy'
|
||||||
[iojs]='https://github.com/iojs/docker-iojs'
|
[iojs]='https://github.com/nodejs/docker-iojs'
|
||||||
[irssi]='https://github.com/jfrazelle/irssi'
|
[irssi]='https://github.com/jfrazelle/irssi'
|
||||||
[jenkins]='https://github.com/cloudbees/jenkins-ci.org-docker'
|
[jenkins]='https://github.com/cloudbees/jenkins-ci.org-docker'
|
||||||
[jetty]='https://github.com/appropriate/docker-jetty'
|
[jetty]='https://github.com/appropriate/docker-jetty'
|
||||||
|
|
@ -52,7 +52,7 @@ declare -A otherRepos=(
|
||||||
[neo4j]='https://github.com/neo4j/docker-neo4j'
|
[neo4j]='https://github.com/neo4j/docker-neo4j'
|
||||||
[neurodebian]='https://github.com/neurodebian/dockerfiles'
|
[neurodebian]='https://github.com/neurodebian/dockerfiles'
|
||||||
[nginx]='https://github.com/nginxinc/docker-nginx'
|
[nginx]='https://github.com/nginxinc/docker-nginx'
|
||||||
[node]='https://github.com/joyent/docker-node'
|
[node]='https://github.com/nodejs/docker-node'
|
||||||
[odoo]='https://github.com/odoo/docker'
|
[odoo]='https://github.com/odoo/docker'
|
||||||
[opensuse]='https://github.com/openSUSE/docker-containers-build'
|
[opensuse]='https://github.com/openSUSE/docker-containers-build'
|
||||||
[oraclelinux]='https://github.com/oracle/docker'
|
[oraclelinux]='https://github.com/oracle/docker'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue