From 11497fbd4b6ebe668fc1b7376fbf727e6f0d0863 Mon Sep 17 00:00:00 2001 From: Marlon Saglia Date: Thu, 22 Aug 2024 09:15:54 +0200 Subject: [PATCH] feat(docker): add container image for query-builder client application Adds a new Dockerfile for the client-side application. This allows the application to be easily built and run as a containerized service. --- client/js/app/Dockerfile | 10 ++++++++++ client/js/app/package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 client/js/app/Dockerfile diff --git a/client/js/app/Dockerfile b/client/js/app/Dockerfile new file mode 100644 index 000000000000..fb1370ab20cf --- /dev/null +++ b/client/js/app/Dockerfile @@ -0,0 +1,10 @@ +FROM node:lts-alpine + +COPY . /app + +WORKDIR /app + +RUN yarn install && \ + yarn build + +CMD [ "yarn", "preview", "--host" ] diff --git a/client/js/app/package.json b/client/js/app/package.json index ba6c5adec08c..8a0d16a54bf2 100644 --- a/client/js/app/package.json +++ b/client/js/app/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "vite --port 3000", "build": "vite build", - "preview": "vite preview", + "preview": "vite preview --port 3000", "prepare": "cd ../../../ && husky client/js/app/.husky", "test": "CI=true vitest", "lint": "eslint '{**/*,*}.{js,jsx}'"