Update rust/latest/Dockerfile
Some checks failed
build rust / yolks:rust_1.56 (push) Successful in 6m41s
build rust / yolks:rust_latest (push) Successful in 13m13s
build rust / yolks:rust_1.60 (push) Has been cancelled

This commit is contained in:
2025-09-15 16:41:44 +02:00
parent 46b5af196f
commit 6e4ce277c3

View File

@@ -3,8 +3,11 @@ FROM --platform=$TARGETOS/$TARGETARCH rust:slim
LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com"
RUN apt update \
&& apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config \
&& useradd -m -d /home/container container
&& apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config build-essential libssl-dev \
&& useradd -m -d /home/container container \
&& rustup update \
&& rustup default nightly \
&& rustup component add rust-src
USER container
ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo