xref: /haiku/3rdparty/docker/cross-compiler/Dockerfile (revision 4a850ca730d8282b5b924e49e09b4ba4d6db7f54)
1FROM debian:buster-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  gawk \
18  git \
19  libcurl4-openssl-dev \
20  libssl-dev \
21  make \
22  nasm \
23  ninja-build \
24  python \
25  texinfo \
26  vim \
27  wget \
28  xz-utils \
29  zlib1g-dev
30
31# architectures to build
32ARG ARCHITECTURE=x86_64
33ARG SECONDARY_ARCHITECTURE=
34
35# Build Haiku cross-compiler toolchain, and haiku package tool
36WORKDIR /tmp
37COPY build-toolchain.sh /tmp/
38RUN chmod 755 /tmp/build-toolchain.sh
39RUN /tmp/build-toolchain.sh $ARCHITECTURE $SECONDARY_ARCHITECTURE
40
41WORKDIR /
42