quadratic
quadratic copied to clipboard
Added Dockerfile
Added a Dockerfile to simplify setup.
Building image:

Running image:

This pull request is automatically being deployed by Amplify Hosting (learn more).
Access this pull request here: https://pr-395.de5w5iglj13on.amplifyapp.com
Quadratic currently has no dependencies besides node and npm. Was there some part of the project you had difficulty getting up and running?
Quadratic currently has no dependencies besides node and npm. Was there some part of the project you had difficulty getting up and running?
A Dockerfile is just the first step, the next step would be an automated image build. :-)
The reason I am asking for a docker based deployment is that this way I could just run the container with one line, something along the lines of:
docker run -p 1234:80 -v /local/data/folder:/mountpoint/inside/container --restart always quadratiqhq:latest
No more manual installing and updating along these lines.
Run Quadratic Locally Install npm, rustup, and wasm-pack Run rustup target add wasm32-unknown-unknown Build the Rust/WASM npm run build:wasm run npm install Run Web npm start
Run Electron npm run dev You're basically asking about the benefits of Docker. In short, I'd say: I can test any app I like with a few commands and I can just remove everything with one command without having to install anything on the host except docker. Benefits like: portable, scalable, lightweight, isolation come to mind.