From 6e4ce277c3da2a55e3f463eda1b6dcca66de889a Mon Sep 17 00:00:00 2001 From: devbeni Date: Mon, 15 Sep 2025 16:41:44 +0200 Subject: [PATCH] Update rust/latest/Dockerfile --- rust/latest/Dockerfile | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/rust/latest/Dockerfile b/rust/latest/Dockerfile index cae3044..32e3e71 100644 --- a/rust/latest/Dockerfile +++ b/rust/latest/Dockerfile @@ -1,16 +1,19 @@ -FROM --platform=$TARGETOS/$TARGETARCH rust:slim +FROM --platform=$TARGETOS/$TARGETARCH rust:slim -LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com" +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 +RUN apt update \ + && 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 -WORKDIR /home/container +USER container +ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo +WORKDIR /home/container -COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] \ No newline at end of file +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file