Last active
April 12, 2024 10:25
-
-
Save Neirth/ab9c344986715b47c2d614425fa7bdac to your computer and use it in GitHub Desktop.
Wine Container for Docker/Kubernetes Platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Docker Container with Wine Installed | |
| # | |
| # Might is interesting install proton from Valve Software for run more apps inside this container | |
| # or use Wine Upstream package, this is a proof of concept only but I hope is useful for study | |
| # how to migrate Windows Containers inside Kubernetes Linux Cluster or create Windows Dependent | |
| # Containers for Linux. | |
| # | |
| # Author: Sergey Neirth | |
| # Create at: 27/03/2021 | |
| # | |
| FROM alpine:latest | |
| # Change wine prefix | |
| ENV WINEPREFIX=/mnt | |
| # Wine 64Bits for running EXEs | |
| RUN apk add --no-cache wine freetype wget cabextract ncurses gnutls samba-winbind-clients && \ | |
| ln -s /usr/bin/wine64 /usr/bin/wine | |
| # Configure Wine | |
| RUN winecfg | |
| # Install winetricks | |
| RUN wget http://winetricks.org/winetricks && \ | |
| chmod +x winetricks && mv winetricks /usr/bin/winetricks && \ | |
| rm -Rf /root | |
| # Install dependecies | |
| RUN winetricks win10 msxml6 | |
| # Install curl windows binary | |
| RUN wget -P /tmp https://curl.se/windows/dl-7.75.0_5/curl-7.75.0_5-win64-mingw.zip && \ | |
| unzip /tmp/curl-7.75.0_5-win64-mingw.zip -d /tmp && \ | |
| mv /tmp/curl-7.75.0-win64-mingw/bin/curl.exe /mnt/dosdevices/c:/windows/system32 && \ | |
| mv /tmp/curl-7.75.0-win64-mingw/bin/curl-ca-bundle.crt /mnt/dosdevices/c:/windows/system32 && \ | |
| rm -Rf /tmp/curl-7.75.0-win64-mingw /tmp/curl-7.75.0_5-win64-mingw | |
| # Run the application | |
| CMD ["/usr/bin/wine" ,"cmd"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment