Add rust language

This commit is contained in:
CDE90
2022-04-17 16:16:14 +01:00
parent b99d99e233
commit fb6c0dcf56
6 changed files with 114 additions and 0 deletions

14
rust/1.56/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM --platform=$TARGETOS/$TARGETARCH rust:1.56-slim
LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com"
RUN apt update \
&& apt -y install git dnsutils curl iproute2 ffmpeg \
&& useradd -m -d /home/container container
USER container
ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]