Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #24

Merged
merged 3 commits into from
Apr 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,26 @@ JSON Visio is data visualization tool for your json data which seamlessly illust

<div align="center">
<img width="800" src="https://github.com/AykutSarac/jsonvisio.com/blob/main/public/preview_2.png" alt="preview 1" />
</div>
</div>


## 🛠 Development Setup

```sh
```console
npm install --legacy-peer-deps
npm run dev
```

## 🐳 Docker

```
A Docker file is provided in the root of the repository.
If you want to run JSON Visio locally:

* Build Docker image with `docker build -t jsonvisio .`
* Run locally with `docker run -p 8888:80 jsonvisio`
* Go to [http://localhost:8888]
```

## License

Expand Down