From 32611ab79abda2b0badf4f2153c54c306098fa4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Garrigue?= Date: Tue, 19 Sep 2023 10:23:56 +0200 Subject: [PATCH] feat: container image --- Dockerfile | 18 ++++++++++++++++++ index.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 Dockerfile create mode 100644 index.html diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..c2e49678 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:18 AS build + +WORKDIR /opt/node_app + +COPY package.json yarn.lock ./ +RUN yarn --ignore-optional --network-timeout 600000 + +ARG NODE_ENV=production + +COPY . . +RUN yarn build + +FROM nginx:1.21-alpine + +COPY --from=build /opt/node_app/dist /opt/node_app/index.html /usr/share/nginx/html/ + + +HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1 diff --git a/index.html b/index.html new file mode 100644 index 00000000..337ef442 --- /dev/null +++ b/index.html @@ -0,0 +1,53 @@ + + + + + Mermaid to Excalidraw + + + + +
+

Custom Test

+
+
+ +
+ +
+
+ Parsed data from parseMermaid +

+      
+
+
+ Loading Spinner +
+
+ + + + + + +