Skip to content

Instantly share code, notes, and snippets.

@Dr-Emann
Created March 23, 2024 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dr-Emann/4396e2142e7058f08fa69f834cdffa01 to your computer and use it in GitHub Desktop.
Save Dr-Emann/4396e2142e7058f08fa69f834cdffa01 to your computer and use it in GitHub Desktop.
FROM debian:12-slim
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y wget && \
mkdir -pm755 /etc/apt/keyrings && wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key && \
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources && \
apt-get update && \
apt-get install -y \
cabextract \
wget \
winehq-stable \
xvfb \
zip
ADD --chmod=0755 --link https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks /tmp/winetricks
ADD --link https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe /install_python32.exe
RUN wineboot -u && /tmp/winetricks -q win10 corefonts
CMD ["/bin/bash", "-c", \
"xvfb-run wine /install_python32.exe /passive InstallAllUsers=1 PrependPath=1 TargetDir=C:\\Python310 Include_tcltk=0 Include_test=0 CompileAll=1 && \
wine python -c 'print(\"hi from pyton\")'" \
]
FROM debian:12-slim
ADD --link https://github.com/AndreRH/hangover/releases/download/hangover-9.3/hangover_9.3_debian12_bookworm_arm64.tar /tmp/hangover.tar
RUN tar -xf /tmp/hangover.tar && \
rm /tmp/hangover.tar && \
apt-get update && \
apt-get install -y \
/hangover*.deb \
cabextract \
wget \
xvfb \
zip && \
rm /hangover*.deb
ADD --chmod=0755 --link https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks /tmp/winetricks
RUN wineboot -u && /tmp/winetricks -q win10 corefonts
ADD --link https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe /install_python32.exe
CMD ["/bin/bash", "-c", \
"xvfb-run wine /install_python32.exe /passive InstallAllUsers=1 PrependPath=1 TargetDir=C:\\Python310 Include_tcltk=0 Include_test=0 CompileAll=1 && \
wine python -c 'print(\"hi from pyton\")'" \
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment