Create an init process in Rust that can mount the initial file systems appropriately.

This commit is contained in:
2021-01-06 08:33:28 -08:00
parent 1838e73db3
commit 5def920817
11 changed files with 205 additions and 36 deletions

12
docker/Dockerfile.rust Normal file
View 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