anki/scripts/docker
2021-10-28 18:46:45 +10:00
..
build-entrypoint updated package scripts 2021-10-28 18:46:45 +10:00
build.sh updated package scripts 2021-10-28 18:46:45 +10:00
Dockerfile.amd64 updated package scripts 2021-10-28 18:46:45 +10:00
Dockerfile.arm64 updated package scripts 2021-10-28 18:46:45 +10:00
README.md fix broken build on case-insensitive filesystems; sort Docker deps 2021-10-23 20:49:47 +10:00

Building in Docker

This folder contains a script for building Anki inside a Docker container. It works by creating an image with the required dependencies, and then runs the build with the source folder mounted into the image. This will cause files to be written into bazel-\* and node_modules in the source folder as the build proceeds. The advantage of doing it this way is that most of the efficiency of building outside Docker is retained - you can make minor changes and run the build again, and only the changed parts need to be rebuilt.

If you're looking for a fully isolated build, this other approach in the docs folder may suit you better. As it also includes runtime dependencies, it may be a useful reference for libraries you'll need to install before running Anki.

Usage

Ensure Docker is installed on your machine, and your user has permission to connect to Docker. Then run the following command from the root folder of this source repo:

$ scripts/docker/build.sh amd64

The resulting wheels will be written into bazel-dist. See Development for information on how to install them.

If you're on an ARM Linux machine, replace amd64 with arm64.