add docker build steps

main
Ayush Mukherjee 3 years ago
parent acb3b0b80f
commit 8cede069f7

@ -0,0 +1,5 @@
FROM node:16
# Assuming volume mount to /app
WORKDIR /app
CMD ["sh", "/app/build.sh"]

@ -25,10 +25,19 @@ Note: Asana API URI can be set as https://app.asana.com/api/1.0
4. Run the build command: `npm run build` 4. Run the build command: `npm run build`
5. Deploy the `dist` directory to any web server of your choice 5. Deploy the `dist` directory to any web server of your choice
## Docker Build
This app can be built using docker!
1. Clone this repo
2. Run `docker build -t oneviz .`
3. Run `docker run -it --rm -v $(pwd)
4. Deploy the dist directory to any web server of your choice
``` ```
Note: Make sure you don't copy the node_modules folder if you are making a zip. Note: Make sure you don't copy the node_modules folder if you are making a zip.
``` ```
## License ## License
This project is licensed under MIT. This project is licensed under MIT.

@ -0,0 +1,5 @@
#!/bin/sh
echo 'install'
npm install
npm run build

1920
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save