summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: a32229ef616a5dd1ee18755e4e645a9889e57397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM gentoo/stage3-amd64:20190829

RUN emerge --sync && \
    emerge -1 portage

#RUN touch /etc/init.d/functions.sh && \
#  echo 'PYTHON_TARGETS="${PYTHON_TARGETS} python3_6"' >> /etc/portage/make.conf && \
#  echo 'PYTHON_SINGLE_TARGET="python3_6"' >> /etc/portage/make.conf

RUN emerge =gcc-8.3.0* distcc 

RUN ( \
    echo "#!/bin/sh" && \
    echo "eval \"\`gcc-config -E\`\"" && \
    echo "exec distccd \"\$@\"" \
  ) > /usr/local/sbin/distccd-launcher && \
  chmod +x /usr/local/sbin/distccd-launcher


RUN  rm -rf /usr/portage/*

#CMD ["/usr/local/sbin/distccd-launcher", "--allow", "0.0.0.0/0", "--user", "distcc", "--log-level", "notice", "--log-stderr", "--no-detach", "--verbose"]
CMD ["/usr/local/sbin/distccd-launcher", "--allow", "0.0.0.0/0", "--user", "distcc", "--log-level", "notice", "--log-stderr", "--no-detach"]

EXPOSE 3632