xref: /haiku/3rdparty/docker/bootstrap/Dockerfile (revision 46b7da1f4f40f7157d74fc7fb26ff9ec7f2416f2)
1*7bbfd0ffSAlexander von Gluck IVFROM docker.io/debian:bullseye-slim
2131f0990SAlexander von Gluck IV
3131f0990SAlexander von Gluck IVENV DEBIAN_FRONTEND="noninteractive"
4131f0990SAlexander von Gluck IV
5131f0990SAlexander von Gluck IVRUN apt-get update
6bae2263dSAlexander von Gluck IV
7bae2263dSAlexander von Gluck IV# Base Haiku requirements
86f9861ccSAlexander von Gluck IVRUN apt-get install -y git nasm autoconf automake autopoint texinfo \
96f9861ccSAlexander von Gluck IV	flex bison gawk build-essential unzip wget zip less zlib1g-dev \
104c8e85b3SAlexander von Gluck IV	libzstd-dev libcurl4-openssl-dev genisoimage libtool \
114c8e85b3SAlexander von Gluck IV	mtools gcc-multilib u-boot-tools util-linux device-tree-compiler bc
12131f0990SAlexander von Gluck IV
13db408f18SAugustin Cavalier# GCC requirements
1442f51416SAlexander von Gluck IVRUN apt-get install -y python3
15db408f18SAugustin Cavalier# zlib requirements
161b7e0197SAlexander von Gluck IVRUN apt-get install -y cmake
17db408f18SAugustin Cavalier# ICU requirements
1888500493SAlexander von Gluck IVRUN apt-get install -y pkg-config
19db408f18SAugustin Cavalier# texinfo requirements
20db408f18SAugustin CavalierRUN apt-get install -y libncurses-dev
21db408f18SAugustin Cavalier
227f944227SAlexander von Gluck IV# Developer sundries (that won't impact bootstrap)
237f944227SAlexander von Gluck IVRUN apt-get install -y vim nano
247f944227SAlexander von Gluck IVRUN echo "source /usr/share/vim/vim80/defaults.vim" > ~/.vimrc
257f944227SAlexander von Gluck IVRUN echo "set mouse=" >> ~/.vimrc
261b7e0197SAlexander von Gluck IV
27d214cb5eSAlexander von Gluck IVENV GIT_BUILDTOOLS="https://review.haiku-os.org/buildtools"
28d214cb5eSAlexander von Gluck IVENV GIT_HAIKU="https://review.haiku-os.org/haiku"
29131f0990SAlexander von Gluck IVENV GIT_HAIKUPORTER="https://github.com/haikuports/haikuporter.git"
30131f0990SAlexander von Gluck IVENV GIT_HAIKUPORTS="https://github.com/haikuports/haikuports.git"
31131f0990SAlexander von Gluck IVENV GIT_HAIKUPORTS_CROSS="https://github.com/haikuports/haikuports.cross.git"
32131f0990SAlexander von Gluck IV
33131f0990SAlexander von Gluck IVADD prep.sh /usr/local/bin/prep
34131f0990SAlexander von Gluck IVADD crosstools.sh /usr/local/bin/crosstools
35131f0990SAlexander von Gluck IVADD bootstrap.sh /usr/local/bin/bootstrap
3654624bdaSAlexander von Gluck IVADD haikuports_chroot.sh /usr/local/bin/haikuports_chroot
3754624bdaSAlexander von Gluck IVADD haikuports_build.sh /usr/local/bin/haikuports_build
38131f0990SAlexander von Gluck IV
39131f0990SAlexander von Gluck IVENV WORKPATH="/work"
40131f0990SAlexander von Gluck IVENV PATH="$PATH:$WORKPATH/bin"
41131f0990SAlexander von Gluck IV
42131f0990SAlexander von Gluck IVWORKDIR "/work"
43131f0990SAlexander von Gluck IVVOLUME ["/work"]
44131f0990SAlexander von Gluck IV
45131f0990SAlexander von Gluck IVENTRYPOINT ["/bin/bash", "-c"]
46