Skip to content

Commit 818de51

Browse files
committed
Update node image to official alpine version
1 parent 298fb4c commit 818de51

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

code/guestbook-node/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM mhart/alpine-node:latest
1+
FROM node:7.7.0-alpine
22
RUN mkdir /code
33
WORKDIR /code
44
ADD package.json /code/
55
RUN npm install
66
ADD . /code/
7-
CMD ["node", "main.js"]
7+
CMD ["node", "main.js"]

doc/02-docker-compose/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ We've already created a simple app in `code/guestbook-node` that uses node.js wi
4343
2. Review `Dockerfile`:
4444

4545
```
46-
FROM mhart/alpine-node:latest
46+
FROM node:7.7.0-alpine
4747
RUN mkdir /code
4848
WORKDIR /code
4949
ADD package.json /code/
@@ -52,7 +52,7 @@ ADD . /code/
5252
CMD ["node", "main.js"]
5353
```
5454

55-
We use the base image of `mhart/alpine-node`. Although it's not the official nodejs image, we preferred to use it because it's based in Alpine, a light linux distribution.
55+
We use the base image of `node:7.7.0-alpine`. It is the official image in Alpine, a minimal OS.
5656

5757
The `Dockerfile` then creates the directory where our code will be stored, `/code`, and it copies the `package.json` so it can install the node dependencies.
5858

@@ -202,4 +202,4 @@ Previous | Next
202202

203203
# Credits
204204

205-
This workshop was prepared by [harbur.io](http://harbur.io), under MIT License. Feel free to fork and improve.
205+
This workshop was prepared by [harbur.io](http://harbur.io), under MIT License. Feel free to fork and improve.

0 commit comments

Comments
 (0)