Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

Add Dockerfile

Juan Carlos Alonso8185a9c62097
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..c08154a4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,18 @@
+# Builder
+FROM node:14-buster as builder
+
+WORKDIR /src
+
+COPY . /src
+
+RUN npm install --legacy-peer-deps
+
+RUN npm run build
+
+# App
+FROM nginx:alpine
+
+COPY --from=builder /src/out /app
+
+RUN rm -rf /usr/share/nginx/html \
+ && ln -s /app /usr/share/nginx/html
diff --git a/README.md b/README.md
index 7a744270..9b9b2ebe 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,15 @@ JSON Visio is data visualization tool for your json data which seamlessly illust
<img width="800" src="https://github.com/AykutSarac/jsonvisio.com/blob/main/public/preview_2.png" alt="preview 1" />
</div>
+## Docker
+
+A Docker file is provided in the root of the repo.
+If you want to run JsonVision locally:
+
+* Build Docker image with `docker build -t jsonvisio.`
+* Run locally with `docker run -p 8888:80 jsonvisio`
+* Go to [http://localhost:8888]
+
## 🛠 Development Setup
```sh