rust/Dockerfile
Renovate Bot 6ffa2b739c
All checks were successful
/ test (map[name:nightly]) (push) Successful in 1m35s
/ test (map[name:stable]) (push) Successful in 2m21s
/ test (map[name:v1.81.0]) (push) Successful in 1m12s
chore(deps): update docker.io/rust docker tag to v1.82.0
2024-10-17 23:47:42 +00:00

32 lines
1.2 KiB
Docker

FROM docker.io/rust:1.82.0-slim-bookworm
# nodejs - runtime used by forgejo/github actions
# curl - to download cargo-binstall
# clang-16 & mold - faster linkers for rust
# pkg-config - required to compile some rust `-sys` packages
# libssl-dev - build dependency for git-next
# libdbus-1-dev - linux os interop (e.g. desktop notifications)
# git - git
RUN apt-get update \
&& \
apt-get satisfy -y "nodejs (>=18.19.0), curl (>=7.88.1), pkg-config (>=1.8.1), libssl-dev (>=3.0.14), git (>=2.39.2), libdbus-1-dev (>= 1.14.10), libtag1-dev (>= 1.13), libtagc0-dev (>= 1.13), xorg-dev (>=7.7), libxcb-shape0-dev (>=0.15), libxcb-xfixes0-dev (>=0.15)" \
&& \
rm -r /var/lib/apt/lists/*
RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.9.0/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \
tar -xzf cargo-binstall.tgz && \
rm cargo-binstall.tgz && \
mv cargo-binstall /usr/local/bin/
RUN cargo binstall -y \
cargo-chef@0.1 \
cargo-hack@0.6 \
cargo-machete@0.6.2 \
release-plz@0.3
COPY entrypoint.sh /
RUN git config --global user.email "action@git.kemitix.net" && \
git config --global user.name "ForgeJo Action. See: https://git.kemitix.net/kemitix/rust"
ENTRYPOINT [ "/entrypoint.sh" ]