# Syncserver build for all platforms

**URL:** <https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702>\
**Category:** Syncing & AnkiWeb\
**Created:** [February 5, 2026, 5:37pm UTC](https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702 "2026-02-05T17:37:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gintoki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/gintoki/32/32792_2.png) [@gintoki](https://forums.ankiweb.net/u/gintoki)\
**Post date:** [February 5, 2026, 5:37pm UTC](https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702/1 "2026-02-05T17:37:59Z")

</div>

**Issue:** The command for building the image in `docs/syncserver/README.md` 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.

**Solution:** 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/](https://docs.docker.com/build/building/multi-platform/)

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [February 7, 2026, 7:45pm UTC](https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702/2 "2026-02-07T19:45:16Z")

</div>

Is this the instructions you’re talking about?

> <https://github.com/ankitects/anki/blob/main/docs/syncserver/README.md>

---

<div class="post-metadata">

**Author:** ![gintoki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/gintoki/32/32792_2.png) [@gintoki](https://forums.ankiweb.net/u/gintoki)\
**Post date:** [February 13, 2026, 11:32am UTC](https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702/3 "2026-02-13T11:32:00Z")

</div>

Yes that’s the one.  
If you’d like me to make a PR updating the docs, I’d be happy to.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [February 15, 2026, 10:33pm UTC](https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702/4 "2026-02-15T22:33:15Z")

</div>

You’re welcome to! We’re a bit behind on documentation updates, but we appreciate the help.

---

<div class="post-metadata">

**Author:** ![gintoki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/gintoki/32/32792_2.png) [@gintoki](https://forums.ankiweb.net/u/gintoki)\
**Post date:** [February 16, 2026, 10:42am UTC](https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702/5 "2026-02-16T10:42:16Z")

</div>

I’m so happy that I can contribute in some way to Anki 😁  
[Link to PR](https://github.com/ankitects/anki/pull/4562)  
There’s no rush to review, I’ve seen the backlog 😅

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [March 18, 2026, 10:42am UTC](https://forums.ankiweb.net/t/syncserver-build-for-all-platforms/68702/6 "2026-03-18T10:42:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
