Add rust.dockerfile
This commit is contained in:
20
rust.dockerfile
Normal file
20
rust.dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user