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

Update Dockerfile

parent 9e17d54d
No related branches found
No related tags found
No related merge requests found
Pipeline #6746 failed
......@@ -7,7 +7,7 @@ LABEL description="To compile and package rust program for arch linux on x64 arc
RUN pacman -Syu --noconfirm
# install gcc
RUN pacman -S --noconfirm gcc grep sudo
RUN pacman -S --noconfirm gcc grep sudo git
# install rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
......@@ -18,8 +18,11 @@ ENV PATH /root/.cargo/bin:$PATH
# install cargo arch
RUN cargo install --git https://github.com/ZettaScript/cargo-arch
# create sudoer user (makepkg refuses to be run by root)
RUN useradd --no-create-home --shell=/bin/false user && usermod -L user
RUN echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ENV USER user
\ 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
RUN chown -R builduser /builds/nodes/rust/duniter-rs/bin/dunitrust-server/src
# 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