Add rust.dockerfile

This commit is contained in:
2026-06-04 23:31:25 +00:00
commit bd56d290d1

20
rust.dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM debian:13.4-slim
USER root
RUN apt-get update && apt-get install -y \
wget \
gcc \
make \
sudo \
git
# Create `coder` user
RUN useradd coder \
--create-home \
--shell=/bin/bash \
--uid=1000 \
--user-group
RUN echo "coder ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd
USER coder
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y