From fc0d9527d4aa67e1ccd08a7a741a57b7a80466bf Mon Sep 17 00:00:00 2001 From: Norman Khine Date: Fri, 27 Nov 2015 12:13:49 +0000 Subject: [PATCH] add Dockerfile and update Readme --- Dockerfile | 4 ++++ README.md | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..af2142c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM python:2-slim +RUN pip install http://github.com/nephics/euvat-json-api/archive/master.zip +EXPOSE 3000 +CMD ["euvat","--port=3000"] \ No newline at end of file diff --git a/README.md b/README.md index cf48484..ac23616 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,18 @@ In this file, you can set the same options as for the command line. The following more detailed instructions are also available from your server [http://127.0.0.1:8040/](). +##Docker + +Run Services +============ + echo == euvat + docker run -d --restart always --name euvat \ + euvat + +Link your app +============= + docker run -d --restart always --name my_app \ + --link euvat:euvat ## The JSON API