Anki is a smart spaced repetition flashcard program https://apps.ankiweb.net
Find a file
cypher 65f45ea87d
Update docker build command for syncserver (#4562)
The command for building the image does not include the` --platform`
flag which prevents the image from running across all architectures. For
example, if I build the image on an ARM system and then try running on
x86, it won’t work.

This issue can be fixed by using `docker buildx` and adding the flag to
include all of the platforms. I have tested this by building the image
with the `linux/arm64` and `linux/amd64` platform flags on an ARM system
and then running a container with that image on an x86 system.

This would be useful in scenarios where the syncserver runs on devices
that cannot do builds.

The correct command would be 
```bash
# Builds for all existing platforms supported by Docker
docker buildx build -f <Dockerfile> --platform linux/amd64,linux/arm64,windows/amd64 --no-cache --build-arg ANKI_VERSION=<version> -t anki-sync-server .
```
Reference: https://docs.docker.com/build/building/multi-platform/
2026-04-07 16:51:28 +03:00
.buildkite Update to Rust 1.92 (#4461) 2026-01-11 18:50:16 +07:00
.cargo Statically link MSVC runtime, removing the need to install the redistributable (#4166) 2025-07-05 15:03:14 +03:00
.config Drop workspace-hack in favor of workspace deps 2023-06-23 17:41:31 +10:00
.cursor/rules Make URL schemes dialog more ergonomic (#4002) 2025-05-15 16:17:33 +10:00
.github Add a standardized pull request template (#4655) 2026-04-06 12:05:44 -03:00
.idea.dist Update PyCharm docs (#4389) 2025-10-27 19:27:50 +07:00
.vscode.dist Update VS Code config (#4397) 2025-10-27 19:31:59 +07:00
build Exclude more folders from build actions (#4561) 2026-03-31 17:56:12 +03:00
cargo Build and publish dev docs (#4579) 2026-03-31 08:26:59 -04:00
docs Update docker build command for syncserver (#4562) 2026-04-07 16:51:28 +03:00
ftl Feat/Different method for ratio graph in Help Me Decide. (#4452) 2026-04-03 19:59:18 +03:00
proto Feat/Different method for ratio graph in Help Me Decide. (#4452) 2026-04-03 19:59:18 +03:00
pylib feat: add support for tag:nc:... searches (#4344) 2025-09-25 07:11:07 +03:00
python Build and publish dev docs (#4579) 2026-03-31 08:26:59 -04:00
qt fix: clipboard image paste produces [sound:] tag instead of <img> (#4668) 2026-04-06 14:30:13 +03:00
rslib Feat/Different method for ratio graph in Help Me Decide. (#4452) 2026-04-03 19:59:18 +03:00
tools Add pre-commit for automated pre-push checks (#4660) 2026-04-06 12:04:49 -03:00
ts Feat/Different method for ratio graph in Help Me Decide. (#4452) 2026-04-03 19:59:18 +03:00
.deny.toml Update to Rust 1.92 (#4461) 2026-01-11 18:50:16 +07:00
.dockerignore Add distroless Dockerfile and implement internal health check (#3366) 2024-08-29 17:05:33 +07:00
.dprint.json Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
.eslintrc.cjs Include error message text on page 2024-06-24 15:35:47 +07:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore Build and publish dev docs (#4579) 2026-03-31 08:26:59 -04:00
.gitmodules Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
.mypy.ini Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
.pre-commit-config.yaml Add pre-commit for automated pre-push checks (#4660) 2026-04-06 12:04:49 -03:00
.prettierrc Switch back to Prettier for Svelte formatting 2025-01-13 15:53:55 +11:00
.python-version Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
.readthedocs.yaml Build and publish dev docs (#4579) 2026-03-31 08:26:59 -04:00
.ruff.toml Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
.rustfmt-empty.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.rustfmt.toml Move ascii_percent_encoding into a separate repo 2023-04-12 08:45:23 +10:00
.version Bump version 2025-09-17 16:50:13 +10:00
.yarnrc.yml Disable NPM package scripts, and assert lockfile unchanged 2025-09-17 09:31:23 +10:00
Cargo.lock Build and publish dev docs (#4579) 2026-03-31 08:26:59 -04:00
Cargo.toml Speed up update_memory_state by batching FSRS memory state calculation (#4335) 2026-03-04 18:23:40 +03:00
check Add a shortcut to auto-format before running checks 2023-07-02 09:59:05 +10:00
CLAUDE.md Support hidden local Claude config 2025-06-29 22:16:59 +07:00
CONTRIBUTORS Update docker build command for syncserver (#4562) 2026-04-07 16:51:28 +03:00
justfile Build and publish dev docs (#4579) 2026-03-31 08:26:59 -04:00
LICENSE Drop Pauker and SuperMemo importers from legacy importer 2025-06-27 16:10:12 +07:00
ninja Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
package.json chore(deps): bump @sveltejs/kit from 2.50.2 to 2.53.3 (#4608) 2026-03-11 23:13:12 +03:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
pyproject.toml Add pre-commit for automated pre-push checks (#4660) 2026-04-06 12:04:49 -03:00
README.md Add punctuation, convert raw URLs to markdown links in READMEs (#4570) 2026-04-01 10:23:23 -03:00
run Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
run.bat One step closer to tools/run-qt* on Windows 2025-09-01 13:39:46 +10:00
rust-toolchain.toml Update to Rust 1.92 (#4461) 2026-01-11 18:50:16 +07:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
uv.lock Add pre-commit for automated pre-push checks (#4660) 2026-04-06 12:04:49 -03:00
yarn Do JS license output from top-level script 2026-02-11 14:26:53 +07:00
yarn.bat Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
yarn.lock chore(deps): bumps rollup from 4.44.1 to 4.59.0 (#4615) 2026-03-18 15:51:40 -03:00

Anki

Build Status Documentation

This repo contains the source code for the computer version of Anki.

About

Anki is a spaced repetition program. Please see the website to learn more.

This repo contains the source code for the computer version of Anki.

Getting Started

Contributing

Want to contribute to Anki? Check out the Contribution Guidelines.

For more information on building and developing, please see Development.

Contributors

The following people have contributed to Anki: CONTRIBUTORS

Anki Betas

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see Anki betas.

License

Anki's license: LICENSE