Skip to content

Instantly share code, notes, and snippets.

@ObjectBoxPC
Last active August 6, 2026 20:17
Show Gist options
  • Select an option

  • Save ObjectBoxPC/2e5d44a560e447bd99b07bddf6e77207 to your computer and use it in GitHub Desktop.

Select an option

Save ObjectBoxPC/2e5d44a560e447bd99b07bddf6e77207 to your computer and use it in GitHub Desktop.
Dockerfile for cross-building captdriver for AArch64 (for Raspberry Pi)
FROM debian:trixie-slim AS build
WORKDIR /src
RUN ["dpkg", "--add-architecture", "arm64"]
RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu make automake libcups2-dev:arm64 cups-ppdc
COPY . .
RUN ["aclocal"]
RUN ["autoconf"]
RUN ["automake", "--add-missing"]
RUN ["./configure", "--host=aarch64-linux-gnu"]
RUN ["make"]
RUN ["make", "ppd"]
FROM scratch
COPY --from=build /src/src/rastertocapt /
COPY --from=build /src/ppd /ppd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment