Skip to content

Instantly share code, notes, and snippets.

@adamjasinski
Last active June 16, 2019 23:00
Show Gist options
  • Save adamjasinski/5b9f4e5dfee5244c8128c1531bca3410 to your computer and use it in GitHub Desktop.
Save adamjasinski/5b9f4e5dfee5244c8128c1531bca3410 to your computer and use it in GitHub Desktop.
NetFx on Linux+Wine Hydra Dockerfile
#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