Created
January 27, 2024 05:02
-
-
Save bjconlan/441c28cbdd62fc2567cb8d59eb9c5fe2 to your computer and use it in GitHub Desktop.
Running .net6 applications via wine/podman (specifically this was for https://github.com/tooll3/t3)
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
# podman run -it -e DISPLAY -v $XAUTHORITY:$XAUTHORITY:ro -v /tmp/.X11-unix:/tmp/.X11-unix:ro --security-opt label=type:container_runtime_t --rm --net=host --ipc=host dotnet6 | |
FROM alpine | |
RUN apk update\ | |
&& apk add wine mesa-dri-gallium vulkan-loader\ | |
&& wget https://dl.winehq.org/wine/wine-mono/8.1.0/wine-mono-8.1.0-x86.tar.xz\ | |
&& tar -xJf wine-mono-8.1.0-x86.tar.xz\ | |
&& mkdir -p /root/.wine/drive_c/windows/mono\ | |
&& mv wine-mono-8.1.0 /root/.wine/drive_c/windows/mono/mono-2.0\ | |
&& rm wine-mono-8.1.0-x86.tar.xz | |
# This needs to run with a DISPLAY environment set (so generally needs to be run via CMD | |
# RUN wget https://download.visualstudio.microsoft.com/download/pr/9b8baa92-04f4-4b1a-8ccd-aa6bf31592bc/3a25c73326e060e04c119264ba58d0d5/dotnet-sdk-6.0.418-win-x64.exe\ | |
# && wine dotnet-sdk-6.0.418-win-x64.exe /q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment