2016-09-15 02:25:12 -04:00
|
|
|
# Requires a decent modern Docker version (v1.10.x at least ideally)
|
|
|
|
|
|
|
|
# Use semi-official Arch Linux image with fixed versioning
|
2018-11-20 14:41:16 -05:00
|
|
|
FROM base/archlinux:2018.11.01
|
2016-09-15 02:25:12 -04:00
|
|
|
|
|
|
|
# Environment variables
|
|
|
|
ENV WINEPREFIX /wine32
|
|
|
|
ENV WINEARCH win32
|
|
|
|
ENV WINEDEBUG -all
|
|
|
|
|
|
|
|
# Install Wine (32-bit)
|
|
|
|
RUN \
|
|
|
|
echo -e "#!/bin/sh\nwine \$@\nretval=\$?\ntail --pid=\$(pidof wineserver 2>/dev/null||echo 0) -f /dev/null\nexit \$retval" > /usr/local/bin/wine-wrapper &&\
|
|
|
|
chmod +x /usr/local/bin/wine-wrapper &&\
|
|
|
|
\
|
|
|
|
(\
|
|
|
|
echo '' &&\
|
|
|
|
echo '[multilib]' &&\
|
|
|
|
echo 'Include = /etc/pacman.d/mirrorlist'\
|
|
|
|
) >> /etc/pacman.conf &&\
|
2016-10-02 17:40:00 -04:00
|
|
|
pacman -Sy --noconfirm \
|
|
|
|
lib32-gnutls \
|
|
|
|
wine \
|
|
|
|
wget \
|
|
|
|
xorg-server-xvfb \
|
2018-11-20 14:46:49 -05:00
|
|
|
pacman-contrib \
|
2016-10-02 17:40:00 -04:00
|
|
|
&&\
|
2016-09-15 02:25:12 -04:00
|
|
|
\
|
|
|
|
wine-wrapper wineboot.exe -i &&\
|
|
|
|
wget -Ovcredist_x86.exe https://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe &&\
|
2017-01-21 17:11:48 -05:00
|
|
|
WINEDEBUG=+all-trace xvfb-run sh -c 'wine-wrapper vcredist_x86.exe /q' &&\
|
2016-09-15 02:25:12 -04:00
|
|
|
rm vcredist_x86.exe &&\
|
|
|
|
\
|
2016-10-02 17:40:00 -04:00
|
|
|
pacman -Rs --noconfirm \
|
|
|
|
xorg-server-xvfb \
|
|
|
|
wget \
|
|
|
|
&&\
|
2016-09-15 02:25:12 -04:00
|
|
|
\
|
|
|
|
find /. -name "*~" -type f -delete &&\
|
|
|
|
rm -rf /tmp/* /var/tmp/* /usr/share/man/* /usr/share/info/* /usr/share/doc/* &&\
|
|
|
|
pacman -Scc --noconfirm &&\
|
|
|
|
paccache -rk0 &&\
|
|
|
|
rm -rf /var/lib/pacman/sync/*
|
|
|
|
|
|
|
|
USER 0
|