From 8e8c8b67f58f3b2b0d049bb8fb519dfac7273a16 Mon Sep 17 00:00:00 2001
From: danielo515 <rdanielo@gmail.com>
Date: Mon, 6 Mar 2017 09:33:52 +0100
Subject: [PATCH 1/2] - Added docker image for rpi - Added instructions for
 build rpi image - Added npm scripts for building images

---
 Dockerfile.rpi | 13 +++++++++++++
 README.md      |  9 +++++++++
 package.json   |  4 +++-
 3 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 Dockerfile.rpi

diff --git a/Dockerfile.rpi b/Dockerfile.rpi
new file mode 100644
index 000000000..663d578ab
--- /dev/null
+++ b/Dockerfile.rpi
@@ -0,0 +1,13 @@
+FROM hypriot/rpi-node:6-onbuild
+
+RUN mkdir -p /verdaccio/storage /verdaccio/conf
+
+WORKDIR /verdaccio
+
+ADD conf/docker.yaml /verdaccio/conf/config.yaml
+
+EXPOSE 4873
+
+VOLUME ["/verdaccio/conf", "/verdaccio/storage"]
+
+CMD ["/usr/src/app/bin/verdaccio", "--config", "/verdaccio/conf/config.yaml", "--listen", "0.0.0.0:4873"]
diff --git a/README.md b/README.md
index 921881a40..6c98154e8 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,15 @@ To build your own image:
 
 `docker build -t verdaccio .`
 
+There is also an npm script for building the docker image, so you can also do:
+
+`npm run build-docker`
+
+If you want to use the docker image on a rpi or a compatible device there is also a dockerfile available.
+To build the docker image for raspberry pi execute:
+
+`npm run build-docker:rpi`
+
 To run the docker container:
 
 ```
diff --git a/package.json b/package.json
index 12d80ec7c..e947d1c04 100644
--- a/package.json
+++ b/package.json
@@ -73,7 +73,9 @@
     "test:coverage": "nyc --reporter=html --reporter=text mocha -R spec ./test/functional ./test/unit",
     "test-travis": "eslint . && npm run test:coverage",
     "test-only": "mocha ./test/functional ./test/unit",
-    "lint": "eslint ."
+    "lint": "eslint .",
+    "build-docker": "docker build -t verdaccio .",
+    "build-docker:rpi": "docker build -f Dockerfile.rpi -t verdaccio:rpi ."
   },
   "engines": {
     "node": ">=0.10"

From 216d376598346335db7661d9c74325c15e59780d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Rodr=C3=ADguez=20Rivero?= <rdanielo@gmail.com>
Date: Wed, 22 Mar 2017 09:55:35 +0100
Subject: [PATCH 2/2] Update README.md

---
 README.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/README.md b/README.md
index 6c98154e8..5eccee126 100644
--- a/README.md
+++ b/README.md
@@ -76,6 +76,8 @@ docker run -it --rm --name verdaccio -p 4873:4873 \
   verdaccio
 ```
 
+Please note that for any of the above docker commands you need to have docker installed on your machine and the docker executable should be available on your `$PATH`.
+
 ### Ansible
 
 A Verdaccio playbook [is available at galaxy](https://galaxy.ansible.com/030/verdaccio) source: https://github.com/030/ansible-verdaccio