Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .packaging/Dockerfile.gentoo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM gentoo/stage3

RUN echo 'FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -sandbox -usersandbox -usersync -userfetch -userpriv"' >> /etc/portage/make.conf

COPY $CUSTOM_CERT /usr/local/share/ca-certificates/
RUN update-ca-certificates

RUN emerge-webrsync --no-pgp-verify \
&& emerge --update --deep --newuse @world \
&& emerge app-portage/gentoolkit dev-vcs/git sudo vim app-eselect/eselect-python dev-python/pip cmake dev-build/ninja clang

RUN echo 'export PKGDIR=/data/packages' >> ~/.bashrc \
&& echo 'export LLVM_PATH="/usr/lib/llvm/17"' >> ~/.bashrc \
&& echo 'export PATH="${PATH}:${LLVM_PATH}/bin"' >> ~/.bashrc \
&& echo 'export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LLVM_PATH}/lib:${LLVM_PATH}/lib64"' >> ~/.bashrc \
&& echo 'export MANPATH="${MANPATH}:${LLVM_PATH}/share/man"' >> ~/.bashrc

WORKDIR /root

CMD ["/bin/bash"]