Files
yolks/rust/latest/Dockerfile
devbeni f83e636cf8
Some checks failed
build rust / yolks:rust_1.56 (push) Has been cancelled
build rust / yolks:rust_latest (push) Has been cancelled
build rust / yolks:rust_1.60 (push) Has been cancelled
Update rust/latest/Dockerfile
2025-09-15 18:35:53 +02:00

37 lines
942 B
Docker

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 \
sudo \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -d /home/container container \
&& echo "container ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --profile minimal --component rust-src
ENV CARGO_HOME=/usr/local/cargo
ENV PATH="/usr/local/cargo/bin:${PATH}"
USER container
ENV USER=container \
HOME=/home/container \
PATH="/usr/local/cargo/bin:${PATH}"
WORKDIR /home/container
COPY --chown=container:container entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]