2024-05-16 18:52:20 +01:00
|
|
|
FROM docker.io/rust:1.78.0-slim-bookworm
|
|
|
|
|
|
|
|
# nodejs - runtime used by forgejo/github actions
|
|
|
|
# curl - to download cargo-binstall
|
|
|
|
# clang-16 & mold - faster linkers for rust
|
2024-05-17 06:54:43 +01:00
|
|
|
# libssl-dev - build dependency for git-next
|
|
|
|
RUN apt-get update \
|
|
|
|
&& \
|
2024-05-16 18:52:20 +01:00
|
|
|
apt-get install -y \
|
|
|
|
--no-install-recommends \
|
2024-05-16 19:44:39 +01:00
|
|
|
nodejs=18.19.0+dfsg-6~deb12u1 \
|
2024-05-16 18:52:20 +01:00
|
|
|
curl=7.88.1-10+deb12u5 \
|
|
|
|
clang-16=1:16.0.6-15~deb12u1 \
|
2024-05-17 06:54:43 +01:00
|
|
|
mold=1.10.1+dfsg-1 \
|
|
|
|
libssl-dev=3.0.11-1~deb12u2 \
|
|
|
|
&& \
|
2024-05-16 18:52:20 +01:00
|
|
|
rm -r /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/latest/download/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
|
|
|
|
|
|
|
|
RUN rustup component add rustfmt clippy
|
|
|
|
|
|
|
|
COPY entrypoint.sh /
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|