37 lines
1.1 KiB
Django/Jinja
37 lines
1.1 KiB
Django/Jinja
FROM archlinux:latest
|
|
|
|
# WORKAROUND for glibc 2.33 and old Docker
|
|
# See https://github.com/actions/virtual-environments/issues/2658
|
|
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
|
|
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
|
|
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
|
|
bsdtar -C / -xvf "$patched_glibc"
|
|
|
|
{% if unstable %}
|
|
RUN sed -i '/^# after the header/a[kde-unstable]\nInclude = /etc/pacman.d/mirrorlist\n\n[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{% else %}qt5-webkit{% endif %} \
|
|
python-pyqt5 \
|
|
xorg-xinit \
|
|
xorg-server-xvfb \
|
|
ttf-bitstream-vera \
|
|
gcc \
|
|
libyaml \
|
|
xorg-xdpyinfo
|
|
|
|
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
|