build: replace debian base with alpine linux
All checks were successful
/ test (map[name:nightly]) (push) Successful in 5s
/ test (map[name:stable]) (push) Successful in 6s
/ test (map[name:1.74.1]) (push) Successful in 5s

This commit is contained in:
Paul Campbell 2025-01-14 07:53:51 +00:00
parent 3941fe6a1f
commit 6d50289a35

View file

@ -1,19 +1,15 @@
FROM docker.io/rust:1.84.0-slim-bookworm
FROM docker.io/rust:1.84.0-alpine3.21
LABEL org.opencontainers.image.source=https://git.kemitix.net/kemitix/rust
# 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)
# 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)
# 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 apk add nodejs curl clang pkgconfig mold openssl-dev dbus-dev git
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 && \
tar -xzf cargo-binstall.tgz && \