Create an init process in Rust that can mount the initial file systems appropriately.
This commit is contained in:
12
docker/Dockerfile.rust
Normal file
12
docker/Dockerfile.rust
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM fedora:latest
|
||||
ENV USER=lam
|
||||
ENV PASS=lampass
|
||||
|
||||
RUN useradd -m -G wheel -p ${PASS} ${USER}
|
||||
RUN dnf install -y \
|
||||
clang \
|
||||
gcc
|
||||
USER ${USER}
|
||||
WORKDIR /home/${USER}
|
||||
RUN mkdir -p /home/${USER}/lam
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -t x86_64-unknown-linux-musl -y
|
||||
Reference in New Issue
Block a user