xref: /haiku/3rdparty/docker/bootstrap/Dockerfile (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1FROM debian:bullseye-slim
2
3ENV DEBIAN_FRONTEND="noninteractive"
4
5RUN apt-get update
6
7# Base Haiku requirements
8RUN apt-get install -y git nasm autoconf automake autopoint texinfo \
9	flex bison gawk build-essential unzip wget zip less zlib1g-dev \
10	libzstd-dev libcurl4-openssl-dev genisoimage libtool \
11	mtools gcc-multilib u-boot-tools util-linux device-tree-compiler bc
12
13# GCC requirements
14RUN apt-get install -y python3
15# zlib requirements
16RUN apt-get install -y cmake
17# ICU requirements
18RUN apt-get install -y pkg-config
19# texinfo requirements
20RUN apt-get install -y libncurses-dev
21
22# Developer sundries (that won't impact bootstrap)
23RUN apt-get install -y vim nano
24RUN echo "source /usr/share/vim/vim80/defaults.vim" > ~/.vimrc
25RUN echo "set mouse=" >> ~/.vimrc
26
27ENV GIT_BUILDTOOLS="https://review.haiku-os.org/buildtools"
28ENV GIT_HAIKU="https://review.haiku-os.org/haiku"
29ENV GIT_HAIKUPORTER="https://github.com/haikuports/haikuporter.git"
30ENV GIT_HAIKUPORTS="https://github.com/haikuports/haikuports.git"
31ENV GIT_HAIKUPORTS_CROSS="https://github.com/haikuports/haikuports.cross.git"
32
33ADD prep.sh /usr/local/bin/prep
34ADD crosstools.sh /usr/local/bin/crosstools
35ADD bootstrap.sh /usr/local/bin/bootstrap
36ADD haikuports_chroot.sh /usr/local/bin/haikuports_chroot
37ADD haikuports_build.sh /usr/local/bin/haikuports_build
38
39ENV WORKPATH="/work"
40ENV PATH="$PATH:$WORKPATH/bin"
41
42WORKDIR "/work"
43VOLUME ["/work"]
44
45ENTRYPOINT ["/bin/bash", "-c"]
46