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

Update Dockerfile

parent 9187c0f8
No related branches found
No related tags found
No related merge requests found
Pipeline #6731 passed
......@@ -3,13 +3,11 @@ MAINTAINER elois <elois@ifee.fr>
LABEL version="1.37"
LABEL description="To compile and package rust program for arch linux on x64 architecture"
# TODO install needed dependencies
# update & upgrade
RUN pacman -Syu --noconfirm
# install gcc
RUN pacman -S --noconfirm gcc
RUN pacman -S --noconfirm gcc grep sudo
# install rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
......@@ -19,3 +17,9 @@ 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment