-
I'm trying to launch my puppeteer-sharp app in docker with Thanks. Project: <PackageReference Include="PuppeteerSharp" Version="20.1.3" /> Code: var browserFetcher = new BrowserFetcher();
await browserFetcher.DownloadAsync();
await using var browser = await Puppeteer.LaunchAsync(new LaunchOptions { Headless = true, Args = ["--no-sandbox"] }); Dockerfile: FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
WORKDIR /App
COPY . ./
RUN dotnet restore
RUN dotnet publish -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine
...
WORKDIR /App
COPY --from=build /App/out .
ENTRYPOINT ["dotnet", "test.dll"] Error log:
Trying to check the file existance docker exec test_container ls -lah /App/Chrome/Linux-132.0.6834.83/chrome-linux64/chrome
# -rwxr-xr-x 1 root root 241.1M Jan 7 14:05 /App/Chrome/Linux-132.0.6834.83/chrome-linux64/chrome |
Beta Was this translation helpful? Give feedback.
Answered by
dmdymov
Jun 11, 2025
Replies: 1 comment
-
Changed distro to Ubuntu and installed packages from this comment and everything works fine. Still, weird error message. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dmdymov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed distro to Ubuntu and installed packages from this comment and everything works fine. Still, weird error message.