Last active
June 16, 2019 23:00
-
-
Save adamjasinski/5b9f4e5dfee5244c8128c1531bca3410 to your computer and use it in GitHub Desktop.
NetFx on Linux+Wine Hydra Dockerfile
This file contains 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
#FROM i386/ubuntu:latest | |
FROM i386/debian:latest | |
#Note: it is less messy to use 32-bit Wine, so we stick with i386 Linux distro | |
RUN apt-get update && \ | |
apt-get install -y curl unzip cabextract | |
#Install Wine | |
RUN apt-get install -y wine-development | |
WORKDIR /root | |
#Install winetricks | |
#RUN curl https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks --output winetricks && \ | |
RUN curl https://raw.githubusercontent.com/Winetricks/winetricks/45f05d776262b6b10d7b6188e00fd5094b9dcea4/src/winetricks --output winetricks && \ | |
chmod +x winetricks | |
#Install SSDT | |
RUN mkdir SSDT && \ | |
curl -L https://www.nuget.org/api/v2/package/Microsoft.Data.Tools.Msbuild/10.0.61804.210 --output SSDT/Microsoft.Data.Tools.Msbuild.nupkg && \ | |
unzip SSDT/Microsoft.Data.Tools.Msbuild.nupkg -d SSDT | |
#Initialize Wine environment | |
RUN WINEARCH=win32 WINEPREFIX=$HOME/winedotnet wineboot --init | |
#RUN env WINEARCH=win32 WINEPREFIX=$HOME/winedotnet wineboot -u | |
#Install .NET Framework | |
RUN env WINEARCH=win32 WINEPREFIX=$HOME/winedotnet $HOME/winetricks --unattended dotnet462 | |
#Install MSbuild | |
RUN curl https://download.microsoft.com/download/E/E/D/EEDF18A8-4AED-4CE0-BEBE-70A83094FC5A/BuildTools_Full.exe --output BuildTools_Full.exe | |
RUN env WINEPREFIX=$HOME/winedotnet wine BuildTools_Full.exe /Passive | |
#CMD ls -l /root | |
CMD env WINEPREFIX=$HOME/winedotnet msbuild /? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment