2024-09-06 01:02:43 +01:00
|
|
|
FROM docker.io/rust:1.81.0-slim-bookworm
|
2024-05-16 18:52:20 +01:00
|
|
|
|
|
|
|
# nodejs - runtime used by forgejo/github actions
|
|
|
|
# curl - to download cargo-binstall
|
|
|
|
# clang-16 & mold - faster linkers for rust
|
2024-05-17 07:03:40 +01:00
|
|
|
# pkg-config - required to compile some rust `-sys` packages
|
2024-05-17 07:23:55 +01:00
|
|
|
# libssl-dev - build dependency for git-next
|
2024-08-04 15:40:15 +01:00
|
|
|
# libdbus-1-dev - linux os interop (e.g. desktop notifications)
|
|
|
|
# git - git
|
2024-05-17 07:03:40 +01:00
|
|
|
RUN apt-get update \
|
|
|
|
&& \
|
2024-09-16 17:25:07 +01:00
|
|
|
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)" \
|
2024-05-17 07:03:40 +01:00
|
|
|
&& \
|
2024-05-16 18:52:20 +01:00
|
|
|
rm -r /var/lib/apt/lists/*
|
|
|
|
|
2024-08-04 14:49:42 +01:00
|
|
|
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 && \
|
2024-05-16 18:52:20 +01:00
|
|
|
tar -xzf cargo-binstall.tgz && \
|
|
|
|
rm cargo-binstall.tgz && \
|
|
|
|
mv cargo-binstall /usr/local/bin/
|
|
|
|
|
2024-08-04 15:40:15 +01:00
|
|
|
RUN cargo binstall -y \
|
|
|
|
cargo-chef@0.1.67 \
|
2024-08-12 09:37:39 +01:00
|
|
|
cargo-hack@0.6.31 \
|
2024-09-17 10:39:41 +01:00
|
|
|
release-plz@0.3.80
|
2024-05-16 18:52:20 +01:00
|
|
|
|
|
|
|
COPY entrypoint.sh /
|
|
|
|
|
2024-08-04 15:40:15 +01:00
|
|
|
RUN git config --global user.email "action@git.kemitix.net" && \
|
|
|
|
git config --global user.name "ForgeJo Action. See: https://git.kemitix.net/kemitix/rust"
|
2024-06-13 19:48:39 +01:00
|
|
|
|
2024-05-16 18:52:20 +01:00
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|