mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

+ Initial groundwork for AMD64 builds on ARM/Rosetta. Not currently viable due to bugs in either Linux or Rosetta which results in a Sveltekit build hanging indefinitely.
11 lines
356 B
Bash
Executable file
11 lines
356 B
Bash
Executable file
#!/bin/bash
|
|
# builds an 'anki-[amd|arm]' image for the current platform
|
|
#
|
|
# for a cross-compile on recent Docker:
|
|
# docker buildx create --use
|
|
# docker run --privileged --rm tonistiigi/binfmt --install amd64
|
|
# docker buildx build --platform linux/amd64 --tag anki-amd64 . --load
|
|
|
|
. common.inc
|
|
|
|
DOCKER_BUILDKIT=1 docker build --tag anki-${platform} .
|