44 lines
1.2 KiB
Django/Jinja
44 lines
1.2 KiB
Django/Jinja
FROM archlinux:latest
|
|
|
|
{% if unstable %}
|
|
RUN sed -i '/^# after the header/a[kde-unstable]\nInclude = /etc/pacman.d/mirrorlist\n\n[testing]\nInclude = /etc/pacman.d/mirrorlist\n\n[community-testing]\nInclude = /etc/pacman.d/mirrorlist' /etc/pacman.conf
|
|
{% endif %}
|
|
RUN pacman -Suyy --noconfirm \
|
|
git \
|
|
python-tox \
|
|
python-distlib \
|
|
qt5-base \
|
|
qt5-declarative \
|
|
{% if webengine %}
|
|
qt5-webengine python-pyqtwebengine \
|
|
python-pyqt5 \
|
|
{% endif %}
|
|
xorg-xinit \
|
|
xorg-server-xvfb \
|
|
ttf-bitstream-vera \
|
|
gcc \
|
|
libyaml \
|
|
xorg-xdpyinfo
|
|
|
|
{% if not webengine %}
|
|
RUN pacman -U --noconfirm \
|
|
https://archive.archlinux.org/packages/q/qt5-webkit/qt5-webkit-5.212.0alpha4-18-x86_64.pkg.tar.zst \
|
|
https://archive.archlinux.org/packages/p/python-pyqt5/python-pyqt5-5.15.7-2-x86_64.pkg.tar.zst
|
|
{% endif %}
|
|
|
|
{% if webengine %}
|
|
RUN python3 -c "from PyQt5 import QtWebEngineCore, QtWebEngineWidgets"
|
|
{% else %}
|
|
RUN python3 -c "from PyQt5 import QtWebKit, QtWebKitWidgets"
|
|
{% endif %}
|
|
|
|
RUN useradd user -u 1001 && \
|
|
mkdir /home/user && \
|
|
chown user:users /home/user
|
|
USER user
|
|
WORKDIR /home/user
|
|
|
|
CMD git clone /outside qutebrowser.git && \
|
|
cd qutebrowser.git && \
|
|
tox -e py
|