webtorrent / webtorrent-hybrid

WebTorrent (with WebRTC support in Node.js)
https://webtorrent.io
MIT License
516 stars 98 forks source link

fixes mac-m1 compilation for docker #165

Closed zackees closed 1 year ago

zackees commented 2 years ago

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update [x] Bug fix [ ] New feature [ ] Other, please explain:

What changes did you make? (Give an overview)

Added a docker-compose file which contains a platform directive to force the image to be compiled using the x86-64 chipset. Without this, the build will fail on mac-m1's when it tries to fetch the electron dependency for the m1 platform. This is a known problem that does not have a work around yet.

Is there anything you'd like reviewers to focus on?

Should be very straightforward.

zackees commented 2 years ago

@DiegoRBaquero @watson @mvayngrib @feross @Flet