Archived
1
0
Fork 0
This repository has been archived on 2024-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
dockerfiles/profanity/Dockerfile

45 lines
1.4 KiB
Docker
Raw Normal View History

FROM archlinux/base:latest
LABEL maintainer "J. Elfring <devops@elfrinjo.de>"
## Set faster mirrors
COPY assets/mirrorlist /etc/pacman.d/mirrorlist
## Install prereqs and create a user with
## administrative privileges to install packages
RUN pacman --sync --refresh --needed --noconfirm \
base-devel \
git \
&& useradd --create-home user
COPY assets/sudoers /etc/sudoers
## Switch to the new user and install yaourt from aur
USER user
RUN cd /tmp \
## Install package-query, a prereq for yaourt
&& curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz \
&& tar -xvzf package-query.tar.gz \
&& cd package-query \
&& makepkg -si --noconfirm \
&& cd /tmp \
&& rm -rf package-query.tar.gz package-query \
## Install yaourt
&& curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz \
&& tar -xvzf yaourt.tar.gz \
&& cd yaourt \
&& makepkg -si --noconfirm \
&& cd /tmp \
&& rm -rf yaourt.tar.gz yaourt \
## Install profanity
&& cd /home/user \
2019-10-03 13:46:03 +02:00
&& yaourt --sync --noconfirm profanity-git
## Cleanup
2019-10-03 13:46:03 +02:00
RUN sudo pacman --noconfirm -Rcns yaourt package-query git \
&& pacman -Qgq base > /tmp/pkg_base \
&& pacman -Qgq base-devel > /tmp/pkg_base-devel \
&& grep -f /tmp/pkg_base -v /tmp/pkg_base-devel > /tmp/pkg_devel
#&& sudo pacman --noconfirm -Rsu base-devel \
#&& sudo pacman --noconfirm -Rsn $(pacman -Qqdt)
WORKDIR /home/user
CMD ["/usr/sbin/profanity"]