Fixed Dockerfile and improved doc regarding secret.json.

This commit is contained in:
Thomas VIAL 2016-08-18 13:28:37 +02:00
parent 00a025310d
commit e374eeab80
No known key found for this signature in database
GPG Key ID: 0394CEE552FAFEFC
3 changed files with 4 additions and 3 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules/

View File

@ -1,3 +1,3 @@
FROM node:0.12-onbuild
FROM node:6.4.0-onbuild
ENV INFOSITE http://shields.io
EXPOSE 80

View File

@ -137,7 +137,7 @@ You can build and run the server locally using Docker. First build an image:
```console
$ docker build -t shields ./
Sending build context to Docker daemon 3.923 MB
Step 0 : FROM node:0.12.7-onbuild
Step 0 : FROM node:6.4.0-onbuild
Removing intermediate container c4678889953f
Successfully built 4471b442c220
@ -146,7 +146,7 @@ Successfully built 4471b442c220
Then run the container:
```console
$ docker run --rm -p 8080:80 shields
$ docker run --rm -p 8080:80 -v "$(pwd)/secret.json":/usr/src/app/secret.json --name shields shields
> gh-badges@1.1.2 start /usr/src/app
> node server.js