summaryrefslogtreecommitdiff
path: root/deploy/Dockerfile.cross
blob: a14ac0fda0ad4ebebbd7d90bef86a71dd81aeda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Cross-compile the static arm64 binaries on an amd64 host: the backend
# (bokfd, bokfctl) and the web frontend's bokftui and bokfweb. The images
# are assembled later on the target host from the produced binaries.
FROM debian:bookworm
RUN dpkg --add-architecture arm64 \
 && apt-get update \
 && apt-get install -y --no-install-recommends \
      make ca-certificates gcc-aarch64-linux-gnu \
      libc6-dev:arm64 libssl-dev:arm64 libncurses-dev:arm64 \
 && rm -rf /var/lib/apt/lists/*
COPY cross-build.sh /usr/local/bin/cross-build
RUN chmod 0755 /usr/local/bin/cross-build
ENTRYPOINT ["/usr/local/bin/cross-build"]