Update rust/latest/Dockerfile
All checks were successful
build rust / yolks:rust_1.56 (push) Successful in 6m40s
build rust / yolks:rust_latest (push) Successful in 13m19s
build rust / yolks:rust_1.60 (push) Successful in 24m43s

This commit is contained in:
2025-09-15 17:01:15 +02:00
parent 6e4ce277c3
commit 005b6492c6

View File

@@ -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" LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com"
RUN apt update \ RUN apt update \
&& apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config build-essential libssl-dev \ && apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config build-essential libssl-dev \
&& useradd -m -d /home/container container \ && useradd -m -d /home/container container
&& rustup update \
&& rustup default nightly \ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --profile minimal --component rust-src
&& rustup component add rust-src
USER container USER container
ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo
ENV PATH="/home/container/.cargo/bin:${PATH}"
WORKDIR /home/container WORKDIR /home/container
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh