mirror of
https://github.com/MedzikUser/docker-arch
synced 2024-08-15 03:25:56 +00:00
Compare commits
2 commits
c48fcc64b7
...
b35c5d081e
Author | SHA1 | Date | |
---|---|---|---|
b35c5d081e | |||
f164242e7d |
3 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
FROM archlinux:base-devel
|
||||
|
||||
ADD pacman.conf /etc/pacman.conf
|
||||
ADD mirrorlist /etc/pacman.d/mirrorlist
|
||||
|
||||
RUN pacman -Syu --noconfirm \
|
||||
git \
|
||||
|
@ -12,10 +13,10 @@ RUN pacman -Syu --noconfirm \
|
|||
python-pip \
|
||||
python-requests
|
||||
|
||||
RUN useradd -m -d /build -s /bin/bash archie
|
||||
RUN useradd --create-home build
|
||||
|
||||
ADD sudoers /etc/sudoers
|
||||
|
||||
USER archie
|
||||
USER build
|
||||
|
||||
RUN sudo echo "Running 'sudo' for archie: success"
|
||||
RUN sudo echo "Running 'sudo' for build: success"
|
||||
|
|
2
mirrorlist
Normal file
2
mirrorlist
Normal file
|
@ -0,0 +1,2 @@
|
|||
Server = https://mirror-arch.magicuser.cf/$repo/os/$arch
|
||||
Server = https://mirror-arch1.magicuser.cf/archlinux/$repo/os/$arch
|
2
sudoers
2
sudoers
|
@ -1,2 +1,2 @@
|
|||
root ALL=(ALL) ALL
|
||||
archie ALL=(ALL) NOPASSWD: ALL
|
||||
build ALL=(ALL) NOPASSWD: ALL
|
||||
|
|
Loading…
Reference in a new issue