docker optimizations, doc improvements

This commit is contained in:
Scott Lamb
2021-03-11 23:38:17 -08:00
parent ba10cc21cc
commit 8ced3155e2
3 changed files with 30 additions and 9 deletions

View File

@@ -35,7 +35,8 @@ which you can use from its shell via `docker run` or via something like
Visual Studio Code's Docker plugin.
```
$ docker buildx build --load --tag=moonfire-dev --target=dev
$ docker buildx build \
--load --tag=moonfire-dev --target=dev -f docker/Dockerfile .
...
$ docker run \
--rm --interactive=true --tty \
@@ -84,6 +85,15 @@ caveats:
$ docker buildx build --load --platform=arm64/v8 ...
```
On Linux hosts (as opposed to when using Docker Desktop on macOS/Windows),
you'll likely see errors like the ones below. The solution is to [install
emulators](https://github.com/tonistiigi/binfmt#installing-emulators).
```
Error while loading /usr/sbin/dpkg-split: No such file or directory
Error while loading /usr/sbin/dpkg-deb: No such file or directory
```
## Non-Docker setup
You may prefer building without Docker on the host. Moonfire NVR should run