From 421b63199294c1fee4b40b523cd8cac5e35ab5ab Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Fri, 17 Jan 2020 00:37:20 +0100 Subject: [PATCH] add Dockerfile to deploy in containers with yarn start, using node:11 (we could use a different one if required). Documentation to build and run the Docker container has been added to the README --- Dockerfile | 9 +++++++++ README.md | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c26b38e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:11 + +WORKDIR /app + +EXPOSE 8080 +COPY . . +RUN yarn install + +CMD ["yarn", "start"] diff --git a/README.md b/README.md index 2e0bee7..675e929 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,22 @@ General config file: `RDFExplorer/public/scripts/services/settings.js` To change the query execution behavior check: `RDFExplorer/public/scripts/services/property-graph.js` +## Docker + +### Build + +```bash +docker build -t rdfexplorer . +``` + +### Run + +```bash +docker run --rm -it -p 8081:8080 rdfexplorer +``` + +> Access on http://localhost:8081/ + ## License Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.