diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..40b878d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4f05c1f..25d8275 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM node:0.12-onbuild +FROM node:6.4.0-onbuild ENV INFOSITE http://shields.io EXPOSE 80 diff --git a/INSTALL.md b/INSTALL.md index 12b6ae9..f28f8d1 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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