Files
avif-maker/docker/Dockerfile.linux-x86_64
cottongin cde8ae5626 Add cross-compilation support for Linux and Windows
- Add Docker-based build system for cross-compiling on Apple Silicon
- Create Dockerfiles for Linux x86_64 and ARM64, Windows x86_64
- Add build-all.sh script for automated multi-platform builds
- Configure cargo-deb and cargo-generate-rpm for Linux packaging
- Update README with cross-compilation instructions

Supported outputs:
- Linux x86_64: .deb, .rpm, .tar.gz
- Windows x86_64: .zip

Note: Linux ARM64 disabled due to upstream zune-jpeg NEON bug
2026-02-05 08:21:42 -05:00

26 lines
541 B
Docker

FROM --platform=linux/amd64 rust:1.85-bookworm
# Install build dependencies for libavif, dav1d, and GUI
RUN apt-get update && apt-get install -y \
cmake \
nasm \
meson \
ninja-build \
libx11-dev \
libxcursor-dev \
libxrandr-dev \
libxi-dev \
libgl1-mesa-dev \
libwayland-dev \
libxkbcommon-dev \
rpm \
&& rm -rf /var/lib/apt/lists/*
# Add the target
RUN rustup target add x86_64-unknown-linux-gnu
# Install packaging tools
RUN cargo install cargo-deb cargo-generate-rpm
WORKDIR /build