xref: /haiku/3rdparty/docker/cross-compiler/Dockerfile (revision 106388ddbfdd00f4409c86bd3fe8d581bae532ec)
1FROM debian:bookworm-slim
2
3# docker build --no-cache --tag docker.io/haiku/cross-compiler:x86_64 .
4# docker push docker.io/haiku/cross-compiler:x86_64
5
6RUN apt-get update && apt-get install -y --no-install-recommends \
7  autoconf \
8  automake \
9  bison \
10  bzip2 \
11  ca-certificates \
12  cmake \
13  curl \
14  file \
15  flex \
16  g++ \
17  g++-multilib \
18  gawk \
19  git \
20  libcurl4-openssl-dev \
21  libssl-dev \
22  libzstd-dev \
23  make \
24  nasm \
25  ninja-build \
26  python3 \
27  texinfo \
28  vim \
29  wget \
30  xz-utils \
31  zlib1g-dev
32
33# source revision to build
34ARG BUILDTOOLS_REV=master
35ARG HAIKU_REV=master
36# architectures to build
37ARG ARCHITECTURE=x86_64
38ARG SECONDARY_ARCHITECTURE=
39
40# Build Haiku cross-compiler toolchain, and haiku package tool
41WORKDIR /tmp
42COPY build-toolchain.sh /tmp/
43RUN chmod 755 /tmp/build-toolchain.sh
44RUN /tmp/build-toolchain.sh $BUILDTOOLS_REV $HAIKU_REV $ARCHITECTURE $SECONDARY_ARCHITECTURE
45
46WORKDIR /
47