2025-01-14 07:53:51 +00:00
|
|
|
FROM docker.io/rust:1.84.0-alpine3.21
|
2024-05-16 18:52:20 +01:00
|
|
|
|
2025-01-09 17:26:55 +00:00
|
|
|
LABEL org.opencontainers.image.source=https://git.kemitix.net/kemitix/rust
|
|
|
|
|
2025-01-14 20:59:32 +00:00
|
|
|
RUN apk add --no-cache curl=8.11.1-r0
|
2025-01-09 17:26:55 +00:00
|
|
|
RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.10.19/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 \
|
2024-09-17 10:42:06 +01:00
|
|
|
cargo-chef@0.1 \
|
|
|
|
cargo-hack@0.6 \
|
2024-11-14 07:47:31 +00:00
|
|
|
cargo-machete@0.7 \
|
2025-01-09 17:26:55 +00:00
|
|
|
cargo-mutants@25.0 \
|
2024-09-17 10:42:06 +01:00
|
|
|
release-plz@0.3
|
2024-05-16 18:52:20 +01:00
|
|
|
|
2025-01-09 17:26:55 +00:00
|
|
|
# should be a no-op if the FROM line is up-to-date
|
2025-01-14 20:59:32 +00:00
|
|
|
RUN rustup update stable
|
|
|
|
|
|
|
|
RUN rustup component add rustfmt clippy
|
2025-01-11 20:04:51 +00:00
|
|
|
|
|
|
|
# install nightly
|
|
|
|
RUN rustup install nightly && rustup component add --toolchain nightly rustfmt clippy
|
2025-01-09 17:26:55 +00:00
|
|
|
|
2025-01-14 20:59:32 +00:00
|
|
|
# nodejs - runtime used by forgejo/github actions
|
|
|
|
# curl - to download cargo-binstall
|
|
|
|
# clang & mold - faster linkers for rust
|
|
|
|
# pkgconfig - required to compile some rust `-sys` packages
|
|
|
|
# openssl-dev - build dependency for git-next
|
|
|
|
# dbus-dev - linux os interop (e.g. desktop notifications)
|
|
|
|
# perl - native-tls(vendored)
|
|
|
|
# git - git
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
bash \
|
|
|
|
nodejs \
|
|
|
|
build-base \
|
|
|
|
pkgconfig \
|
|
|
|
libssl3 \
|
|
|
|
openssl-dev \
|
|
|
|
perl \
|
|
|
|
git
|
|
|
|
|
|
|
|
# clang \
|
|
|
|
|
|
|
|
# mold \
|
|
|
|
|
|
|
|
# dbus-dev \
|
|
|
|
|
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
|
|
|
|
2025-01-13 09:04:18 +00:00
|
|
|
COPY scripts/ /usr/local/bin/
|
|
|
|
|
2025-01-12 11:18:19 +00:00
|
|
|
WORKDIR /app
|