Refs #297. Update Node.JS examples to LTS 4.4 base image

This commit is contained in:
Ross Kukulinski
2016-05-09 22:46:29 -04:00
parent f6c6fc80c5
commit d7c129f488
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -75,13 +75,13 @@ Next, create a file, also within `hellonode/` named `Dockerfile`. A Dockerfile d
#### Dockerfile
```conf
FROM node:0.12
FROM node:4.4
EXPOSE 8080
COPY server.js .
CMD node server.js
```
This "recipe" for the Docker image will start from the Node 0.12 image found on the Docker registry, expose port 8080, copy our `server.js` file to the image and start the Node server.
This "recipe" for the Docker image will start from the official Node.js LTS image found on the Docker registry, expose port 8080, copy our `server.js` file to the image and start the Node server.
Now build an image of your container by running `docker build`, tagging the image with the Google Container Registry repo for your `PROJECT_ID`: