buildbot/worker/Dockerfile
2023-08-26 17:14:22 +00:00

13 lines
426 B
Docker

ARG RUST_VERSION_ARG=1.65
FROM rust:${RUST_VERSION_ARG}
COPY worker-setup.sh worker-setup.sh
RUN bash worker-setup.sh
USER buildbot
WORKDIR /buildbot
COPY worker-setup-user.sh worker-setup-user.sh
RUN bash worker-setup-user.sh
COPY buildbot.tac /buildbot/buildbot.tac
RUN rustup component add clippy
RUN rustup component add rustfmt
CMD ["/usr/bin/dumb-init", "/buildbot/venv/bin/twistd", "--pidfile=", "-ny", "buildbot.tac"]