Files
dev-images/rust.dockerfile
2026-06-04 23:31:25 +00:00

20 lines
401 B
Docker

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