From 005b6492c626f3d0562939604df5a1b73d95c8be Mon Sep 17 00:00:00 2001 From: devbeni Date: Mon, 15 Sep 2025 17:01:15 +0200 Subject: [PATCH] Update rust/latest/Dockerfile --- rust/latest/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rust/latest/Dockerfile b/rust/latest/Dockerfile index 32e3e71..0edbb65 100644 --- a/rust/latest/Dockerfile +++ b/rust/latest/Dockerfile @@ -1,16 +1,17 @@ -FROM --platform=$TARGETOS/$TARGETARCH rust:slim +FROM --platform=$TARGETOS/$TARGETARCH ubuntu:latest LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com" 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 + && useradd -m -d /home/container container + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --profile minimal --component rust-src USER container ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo +ENV PATH="/home/container/.cargo/bin:${PATH}" + WORKDIR /home/container COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh