Last active
September 5, 2025 09:40
-
-
Save ironsoftwarebuild/3d1801eb1b07131c73373e4821202857 to your computer and use it in GitHub Desktop.
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 (Ubuntu 18) | |
| FROM mcr.microsoft.com/dotnet/sdk:3.1-bionic | |
| 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 libxshmfence-dev libgdiplus libva-dev | |
| # restore NuGet packages | |
| COPY ["Example/Example.csproj", "Example/"] | |
| RUN dotnet restore "Example/Example.csproj" | |
| # build project | |
| COPY . . | |
| WORKDIR "/src/Example" | |
| RUN dotnet build "Example.csproj" -c Release -o /app/build | |
| # publish project | |
| RUN dotnet publish "Example.csproj" -c Release -o /app/publish | |
| WORKDIR /app/publish | |
| # update permissions | |
| RUN chmod 775 /app/publish/runtimes/linux-x64/native/IronCefSubprocess | |
| # run app | |
| ENTRYPOINT ["dotnet", "Example.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment