muslrust/Dockerfile

19 lines
725 B
Text
Raw Permalink Normal View History

2023-12-02 09:12:06 +00:00
ARG RUST_VERSION
2024-10-25 16:56:18 +00:00
FROM docker.io/clux/muslrust:${RUST_VERSION}-stable
2023-12-02 09:12:06 +00:00
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget \
software-properties-common \
clang && \
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
WORKDIR /tmp
ARG MOLD_VERSION
RUN wget -qO- https://github.com/rui314/mold/releases/download/v${MOLD_VERSION}/mold-${MOLD_VERSION}-x86_64-linux.tar.gz | tar xzf - \
&& cp -RT mold-${MOLD_VERSION}-x86_64-linux /usr/local \
&& rm -rf mold-${MOLD_VERSION}-x86_64-linux
2024-10-25 16:56:18 +00:00
ARG CARGO_CHEF_VERSION
RUN cargo install cargo-chef --version ${CARGO_CHEF_VERSION} --locked
2023-12-02 09:12:06 +00:00
WORKDIR /env
2023-12-02 09:17:37 +00:00
RUN echo "export MOLD=$(which mold)" > .env