Skip to content

Commit

Permalink
feat(docker): add container image for query-builder client application
Browse files Browse the repository at this point in the history
Adds a new Dockerfile for the client-side application. This allows the application to be easily built and run as a containerized service.
  • Loading branch information
esolitos authored and gitbutler-client committed Aug 22, 2024
1 parent 6cb5d73 commit 11497fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions client/js/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:lts-alpine

COPY . /app

WORKDIR /app

RUN yarn install && \
yarn build

CMD [ "yarn", "preview", "--host" ]
2 changes: 1 addition & 1 deletion client/js/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}'"
Expand Down

0 comments on commit 11497fb

Please sign in to comment.