1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-06-27 01:00:34 +02:00
eoli3n-dotfiles/docker/archlinux/Dockerfile
2017-12-24 14:49:34 +01:00

32 lines
853 B
Docker

FROM archlinux/base AS build
RUN pacman -Syu --noconfirm && pacman -S --noconfirm \
ansible \
jshon \
git \
sudo \
binutils \
util-linux \
fakeroot \
file \
python \
yajl \
make \
gcc \
pkg-config \
which \
perl \
automake \
autoconf \
xorg-server-xephyr
ENV PATH="${PATH}:/usr/bin/core_perl"
RUN useradd -m test 2> /dev/null
RUN echo "test ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN chmod 1777 /tmp
USER test
WORKDIR /home/test/
RUN git clone --recursive https://github.com/eoli3n/dotfiles
RUN cd /tmp; curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer-git
RUN cd /tmp; makepkg PKGBUILD --install --needed --noconfirm
RUN cd /home/test/dotfiles; ./install.sh desktop
RUN echo -e "vagrant\n/usr/bin/zsh" | chsh