Skip to content
Snippets Groups Projects
Commit b6b9fc55 authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist:
Browse files

Update Dockerfile

parent ecbb1e30
No related branches found
No related tags found
No related merge requests found
Pipeline #6758 failed
...@@ -9,19 +9,19 @@ RUN pacman -Syu --noconfirm ...@@ -9,19 +9,19 @@ RUN pacman -Syu --noconfirm
# install gcc # install gcc
RUN pacman -S --noconfirm gcc grep sudo git RUN pacman -S --noconfirm gcc grep sudo git
# create user
RUN useradd builduser
RUN echo "builduser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER builduser
# install rustup # install rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN rustup install stable
RUN rustup default stable
# rustup directory # rustup directory
ENV PATH /root/.cargo/bin:$PATH ENV PATH /home/builduser/.cargo/bin:$PATH
# install cargo arch # install cargo-arch
RUN cargo install --git https://github.com/ZettaScript/cargo-arch RUN cargo install --git https://github.com/ZettaScript/cargo-arch
\ No newline at end of file
# create user
RUN useradd --no-create-home --shell=/bin/false builduser && usermod -L builduser
RUN echo "builduser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# place bins into accessible places
RUN cp /root/.cargo/bin/cargo /usr/bin
RUN cp /root/.cargo/bin/cargo-arch /usr/bin
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment