xref: /haiku/3rdparty/docker/bootstrap/Dockerfile.fedora (revision 77fb9ca3e653f72d1d15c9f1a50c3d4287f680e0)
1FROM fedora:latest
2
3RUN dnf update -y
4
5# Base Haiku requirements
6RUN dnf install -y git nasm texinfo flex bison wget uboot-tools \
7	gcc gcc-c++ make zlib-devel xorriso curl-devel byacc libtool \
8	byacc libstdc++-static mtools python36 libfdt bc patch unzip \
9	autoconf automake gettext-devel \
10	libstdc++-devel.x86_64 libstdc++-devel.i686 \
11	glibc-headers glibc-devel.x86_64 glibc-devel.i686
12
13# GCC requirements
14RUN dnf install -y python
15# zlib requirements
16RUN dnf install -y cmake
17# ICU requirements
18RUN dnf install -y pkg-config
19# texinfo requirements
20RUN dnf install -y ncurses-devel
21
22# Developer sundries (that won't impact bootstrap)
23RUN dnf 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