new docker-based build

This replaces the previous Dockerfile, which was a single stage for
building and deployment.

The new one is a multi-stage build. Its "dev" target has the full
development environment; its "deploy" target is more slim. It supports
cross-compiled builds via BuildKit, eg to prepare a build suitable for
a Raspberry Pi:

docker buildx build --load --platform=linux/arm64/v8 --tag=moonfire-nvr --progress=plain --target=deploy -f docker/Dockerfile .

Coming next: updating the installation docs.
This commit is contained in:
Scott Lamb
2021-01-15 09:54:10 -08:00
parent b2bf7bdfa4
commit 9349a2a164
8 changed files with 244 additions and 184 deletions

View File

@@ -47,8 +47,8 @@ PKGS="build-essential \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libncurses5-dev \
libncursesw5-dev \
libncurses-dev \
libncursesw-dev \
libsqlite3-dev \
pkgconf \
sqlite3 \