Initially it was reported that the dockerized version is not working on Windows, but I realized it doesn't work also on the new m1 macOS (due to a different issue).
The windows issue is caused by broken symlinks when cloning the repo locally. This also means it's not possible to develop using Windows for which I've added a note. The fix is to clone the repo inside docker (again).
MacOS issue is caused by missing libraries and we had the same issue in Airnode so I just copied over the solution.
I've also changed the instructions in the README to clone the repo using HTTPS instead of SSH since the SSH requires more setup and is not really needed.
Code changes
First two commits fix the docker issues for Windows and macOS.
Last two commits are changes docker run parameters. These are opinionated, but I'd argue these parameters are better suited. If you disagree I can just drop them.
Tested
I followed the README steps with one change. Instead of running:
git clone --depth=1 --branch production https://github.com/api3dao/api3-dao-dashboard.git
Based of [https://api3workspace.slack.com/archives/C02ALA11APM/p1662495175336859](https://api3workspace.slack.com/archives/C02ALA11APM/p1662495175336859)
Fixes https://linear.app/api3-dao/issue/DAO-205/verify-dao-dashboard-in-docker-works-on-all-platforms
Description
Initially it was reported that the dockerized version is not working on Windows, but I realized it doesn't work also on the new m1 macOS (due to a different issue).
I've also changed the instructions in the README to clone the repo using HTTPS instead of SSH since the SSH requires more setup and is not really needed.
Code changes
Tested
I followed the README steps with one change. Instead of running:
I run
Tested on: