【发布时间】:2020-08-25 14:47:42
【问题描述】:
我在做什么
我正在使用 Balena 在 Raspberry Pi 4 上构建一个基于 Electron 的信息亭应用程序。Balena 需要一个 Dockerfile 来构建将运行我的应用程序的容器。在那个 Dockerfile 中,我必须确保安装了 Electron 所需的所有库。我使用的图像基于 Debian Buster(Balena 使用的默认图像)。
我知道的
我在 GitHub 中找到了两个工作示例,类似于我正在尝试执行的操作,我可以在其中查看安装了哪些库:
- https://github.com/Ciantic/balena-electron-example (list of installed libraries)
- https://github.com/balena-io/balena-electronjs (list of installed libraries)
还有 Electron 存储库中提到所需库的两个文件:
- https://github.com/electron/electron/blob/77049545050673949b2844f17b3731196947956a/build/install-build-deps.sh#L189-L231
- https://github.com/electron/electron/blob/d5ab63b1ead93dcb4e3099fccd4670fe9258ca9c/docs/development/build-instructions-linux.md
什么让我困惑
上述文件中的每个库列表都与其他的不同。我不知道我应该遵循哪一个。此外,build instructions for Linux 没有任何特定于 Debian 的列表。
我的问题
我如何才能确切地知道我需要在基于 Debian 的容器中安装哪些库才能运行 Electron?
【问题讨论】:
标签: linux docker electron debian balena