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
| # base image (Debian 11) | |
| FROM mcr.microsoft.com/dotnet/sdk:3.1-bullseye | |
| WORKDIR /src | |
| # install necessary packages | |
| RUN apt update \ | |
| && apt install -y sudo libxkbcommon-x11-0 libc6 libc6-dev libgtk2.0-0 libnss3 libatk-bridge2.0-0 libx11-xcb1 libxcb-dri3-0 libdrm-common libgbm1 libasound2 libxrender1 libfontconfig1 libxshmfence1 libgdiplus libva-dev | |
| # restore NuGet packages | |
| COPY ["Example/Example.csproj", "Example/"] | |
| RUN dotnet restore "Example/Example.csproj" | |
| # build project |
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
| # base image (Debian 11) | |
| FROM mcr.microsoft.com/dotnet/sdk:5.0-bullseye-slim | |
| WORKDIR /src | |
| # install necessary packages | |
| RUN apt update \ | |
| && apt install -y sudo libxkbcommon-x11-0 libc6 libc6-dev libgtk2.0-0 libnss3 libatk-bridge2.0-0 libx11-xcb1 libxcb-dri3-0 libdrm-common libgbm1 libasound2 libxrender1 libfontconfig1 libxshmfence1 libgdiplus libva-dev | |
| # restore NuGet packages | |
| COPY ["Example/Example.csproj", "Example/"] | |
| RUN dotnet restore "Example/Example.csproj" | |
| # build project |
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
| # base image (Debian 10) | |
| FROM mcr.microsoft.com/dotnet/sdk:3.1 | |
| WORKDIR /src | |
| # install necessary packages | |
| RUN apt update \ | |
| && apt install -y libc6 libc6-dev libgtk2.0-0 libnss3 libatk-bridge2.0-0 libx11-xcb1 libxcb-dri3-0 libdrm-common libgbm1 libasound2 libappindicator3-1 libxrender1 libfontconfig1 libxshmfence1 libgdiplus libva-dev | |
| # restore NuGet packages | |
| COPY ["Example/Example.csproj", "Example/"] | |
| RUN dotnet restore "Example/Example.csproj" | |
| # build project |
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
| # base image (Debian 10) | |
| FROM mcr.microsoft.com/dotnet/sdk:5.0 | |
| WORKDIR /src | |
| # install necessary packages | |
| RUN apt update \ | |
| && apt install -y libc6 libc6-dev libgtk2.0-0 libnss3 libatk-bridge2.0-0 libx11-xcb1 libxcb-dri3-0 libdrm-common libgbm1 libasound2 libappindicator3-1 libxrender1 libfontconfig1 libxshmfence1 libgdiplus libva-dev | |
| # restore NuGet packages | |
| COPY ["Example/Example.csproj", "Example/"] | |
| RUN dotnet restore "Example/Example.csproj" | |
| # build project |
NewerOlder