Skip to content

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

Update Dockerfile

Aykut Saraçed65a9be66ad
diff --git a/Dockerfile b/Dockerfile
index 943ed404..d43d1a31 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,10 @@
# Builder
-FROM node:14-buster as builder
+FROM node:14-alpine as builder
WORKDIR /src
-COPY . /src
-RUN yarn install --legacy-peer-deps
-RUN yarn run build
+COPY . /src/
+RUN npm ci && npm run build
# App
FROM nginxinc/nginx-unprivileged
-COPY --from=builder /src/out /app
+COPY --chown=nginx:nginx --from=builder /src/out /app
COPY default.conf /etc/nginx/conf.d/default.conf