FROM ubuntu:22.04 | |
# Set environment variables | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV WINEDEBUG=-all | |
ENV DISPLAY=:99 | |
ENV WINEARCH=win64 | |
ENV WINEPREFIX=/root/.wine | |
# Fix for XDG_RUNTIME_DIR error | |
ENV XDG_RUNTIME_DIR=/tmp/runtime-root | |
# Install dependencies (minimal headless setup) | |
RUN apt-get update && apt-get install -y \ | |
software-properties-common \ | |
apt-transport-https \ | |
wget \ | |
gnupg2 \ | |
xvfb \ | |
sudo \ | |
cabextract \ | |
xz-utils \ | |
p7zip-full \ | |
curl \ | |
unzip \ | |
&& dpkg --add-architecture i386 \ | |
&& apt-get update | |
CMD python3.10 |