Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

735
Views
No se puede ejecutar PlayWright dentro de la imagen de la ventana acoplable

Estoy tratando de crear una imagen acoplable .net 5.0 con dramaturgo. Este es mi DockerFile:

 FROM mcr.microsoft.com/dotnet/runtime:5.0-buster-slim AS base WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build WORKDIR /src COPY ["Agent.csproj", "Agent/"] RUN dotnet restore "Agent/Agent.csproj" COPY . "/src/Agent" WORKDIR "/src/Agent" RUN apt-get update -yq && apt-get upgrade -yq && apt-get install -yq curl git nano RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -yq nodejs build-essential RUN npm install -g npm RUN dotnet add package Microsoft.Playwright RUN dotnet build "Agent.csproj" -c Release -o /app/build RUN npx playwright install

Pero una vez que ejecuto dentro de mi comando de imagen dotnet run Agent , me da el siguiente error:

 Executable doesn't exist at /root/.cache/ms-playwright/chromium-907428/chrome-linux/chrome Please run the following command to download new browsers: ║ ║ npx playwright install

Aunque mi dockerfile contiene RUN npx playwright install parece que no lo está instalando. Cuando lo elimine de mi dockerfile y lo ejecute manualmente en la imagen en ejecución, parece estar bien. ¿Alguna idea de cómo puedo ejecutar correctamente la instalación de dramaturgos usando dockerfile?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Creo que este es un problema conocido en Playwright . Puede ver la discusión detallada aquí , y particularmente ver este comentario

La solución que he visto que funciona principalmente es eliminar los node_modules por completo y luego volver a instalarlos, o en el caso de una imagen acoplable, pruebe la solución mencionada en este enlace , configurando los navegadores de dramaturgos en una ruta específica

over 4 years ago · Santiago Trujillo Report

0

Mi problema fue que instalé una versión diferente de chromium vs playwright

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!