23 lines
591 B
Docker
23 lines
591 B
Docker
FROM rust:1.71
|
|
RUN apt-get update && apt-get -y upgrade
|
|
RUN apt-get update && apt-get -y install -q\
|
|
build-essential\
|
|
git\
|
|
python3-dev\
|
|
libffi-dev\
|
|
libssl-dev\
|
|
python3-setuptools\
|
|
python3-pip\
|
|
dumb-init\
|
|
curl
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
RUN pip3 --no-cache-dir install 'twisted[tls]'
|
|
RUN mkdir /buildbot
|
|
RUN useradd -ms /bin/bash buildbot
|
|
RUN pip3 install buildbot-worker
|
|
RUN chown -R buildbot /buildbot
|
|
USER buildbot
|
|
WORKDIR /buildbot
|
|
COPY buildbot.tac /buildbot/buildbot.tac
|
|
CMD ["/usr/bin/dumb-init", "twistd", "--pidfile=", "-ny", "buildbot.tac"]
|