One-KVM/testenv/Dockerfile
2019-04-13 22:06:28 +03:00

39 lines
756 B
Docker

FROM archlinux/base
RUN dd if=/dev/zero of=/root/loop.img bs=1024 count=1048576
RUN pacman -Syu --noconfirm \
&& pacman -S --needed --noconfirm \
base \
base-devel \
git \
expac \
jshon \
&& (pacman -Sc --noconfirm || true)
RUN useradd -r -c "Packer build user" -m -d /var/packer -s /sbin/nologin packer \
&& cd /tmp \
&& sudo -u packer git clone https://aur.archlinux.org/packer-kit.git \
&& cd packer-kit \
&& sudo -u packer makepkg \
&& pacman --noconfirm -U packer-kit-*.pkg.tar.xz \
&& cd - \
&& rm -rf /tmp/packer-kit
RUN pkg-install \
python \
python-pip \
python-tox \
python-systemd \
python-dbus \
python-mako \
nginx-mainline \
ustreamer \
socat \
htmlhint \
eslint
RUN mkdir -p /etc/kvmd/nginx
CMD /bin/bash