Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
plowsec authored Jul 20, 2020
1 parent ac4c849 commit 3c443ef
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,8 @@ FROM archlinux/base
RUN echo "root:root" | chpasswd
RUN useradd -m -G wheel -s /bin/bash toto \
&& echo "toto:toto" | chpasswd
RUN pacman -Syy && pacman -Sy --noconfirm git sudo vim go base-devel libstdc++5 clang llvm
RUN pacman -Syu --noconfirm && pacman -S --noconfirm git sudo vim go base-devel libstdc++5 clang llvm llvm-libs cmake
RUN echo -e "%wheel ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/99_wheel

RUN cd /tmp \
&& git clone https://aur.archlinux.org/yay.git \
&& cd yay \
&& chown -R toto. /tmp/yay/ \
&& sudo -u toto makepkg -s \
&& pacman --noconfirm -U /tmp/yay/yay*.pkg.tar.xz

RUN sudo -u toto yay -Sy --noconfirm clang llvm llvm-libs cmake

USER toto
WORKDIR /home/toto
WORKDIR /home/toto

0 comments on commit 3c443ef

Please sign in to comment.