File: Dockerfile.debian

package info (click to toggle)
rust-rebuilderd-worker 0.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 300 kB
  • sloc: sh: 27; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 999 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM rust:bookworm
WORKDIR /usr/src/rebuilderd
COPY . .
RUN --mount=type=cache,target=/var/cache/buildkit \
    CARGO_HOME=/var/cache/buildkit/cargo \
    CARGO_TARGET_DIR=/var/cache/buildkit/debian/target \
    cargo build --release --locked -p rebuilderd-worker && \
    cp -v /var/cache/buildkit/debian/target/release/rebuilderd-worker /

FROM debian:trixie
# Installing diffoscope with every optional dependency is too much for the github actions worker disk
# If you need specific integrations, feel free to pull request them into the Dockerfile :)
RUN apt-get update \
    && apt install -y apt-utils debian-keyring devscripts dpkg-dev mmdebstrap sbuild uidmap \
    && apt install -y --no-install-recommends diffoscope
COPY --from=0 \
    /usr/src/rebuilderd/worker/rebuilder-debian.sh \
    /usr/local/libexec/rebuilderd/
COPY --from=0 /rebuilderd-worker /usr/local/bin/
ENV REBUILDERD_WORKER_BACKEND=debian=/usr/local/libexec/rebuilderd/rebuilder-debian.sh
ENTRYPOINT ["rebuilderd-worker"]