diff --git a/docs/getting-started-guides/meanstack.md b/docs/getting-started-guides/meanstack.md index 57a7ba39a1..5b757b23d3 100644 --- a/docs/getting-started-guides/meanstack.md +++ b/docs/getting-started-guides/meanstack.md @@ -53,7 +53,7 @@ First, you need a `Dockerfile`. This is basically the list of instructions Docke Here is the `Dockerfile` for the web server: ```shell -FROM node:0.10.40 +FROM node:4.4 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app @@ -65,7 +65,7 @@ CMD ["node", "app.js"] A `Dockerfile` is pretty self explanatory, and this one is dead simple. -First, it uses the official Node.js image as the base image. +First, it uses the official Node.js LTS image as the base image. Then, it creates a folder to store the code, `cd`s into that directory, copies the code in, and installs the dependencies with npm. @@ -441,4 +441,3 @@ By using Container Engine and Kubernetes, we have a very robust, container based Hopefully I can do some more posts about advanced Kubernetes topics such as changing the cluster size and number of Node.js web server replicas, using different environments (dev, staging, prod) on the same cluster, and doing rolling updates. Thanks to [Mark Mandel](https://medium.com/@markmandel), [Aja Hammerly](https://medium.com/@thagomizer), and [Jack Wilber](https://medium.com/@jack.g.wilber). [Some rights reserved](http://creativecommons.org/licenses/by/4.0/) by the author. - diff --git a/docs/hellonode.md b/docs/hellonode.md index abee231730..bfc6bc09d2 100755 --- a/docs/hellonode.md +++ b/docs/hellonode.md @@ -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`: