You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I want to use playwright with azure, locally everything works.
Application deployment is done using pipelines.
After running on Azure and running the function, I get the following message:
Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome Looks like Playwright was just installed or updated. Please run the following command to download new browsers: pwsh bin/Debug/netX/playwright.ps1 install
My docker:
`FROM mcr.microsoft.com/azure-functions/dotnet:4 AS base
WORKDIR /home/site/wwwroot
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/Monitoring/Monitoring.csproj", "Monitoring/"]
COPY ["src/Monitoring/", "Monitoring/"]
RUN dotnet restore "Monitoring/Monitoring.csproj"
COPY . .
WORKDIR "/src/Monitoring"
RUN dotnet build "Monitoring.csproj" -c Release -o /app/build
WORKDIR "/app/build"
RUN pwsh ./playwright.ps1 install
RUN pwsh ./playwright.ps1 install chromium
RUN pwsh ./playwright.ps1 install-deps chromium
WORKDIR "/src/Monitoring"
FROM build AS publish
RUN dotnet publish "Monitoring.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /home/site/wwwroot
COPY --from=publish /app/publish .
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
AzureFunctionsJobHost__Logging__Console__IsEnabled=true`
Anyone had a similar problem?
The text was updated successfully, but these errors were encountered:
Hubert409
changed the title
[Help ] Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome
[Help] Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome
Mar 18, 2024
Hubert409
changed the title
[Help] Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome
[Question] Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome
Mar 18, 2024
Hubert409
changed the title
[Question] Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome
[Question] azure - Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome
Mar 18, 2024
FROM base AS final
WORKDIR /home/site/wwwroot
COPY --from=publish /app/publish .
COPY --from=build /app/build/Microsoft.Playwright.dll .
COPY --from=build /app/build/playwright.ps1 .
RUN pwsh ./playwright.ps1 install
RUN pwsh ./playwright.ps1 install chromium
RUN pwsh ./playwright.ps1 install-deps chromium
Hi,
I want to use playwright with azure, locally everything works.
Application deployment is done using pipelines.
After running on Azure and running the function, I get the following message:
Executable doesn't exist at /ms-playwright/chromium-1097/chrome-linux/chrome Looks like Playwright was just installed or updated. Please run the following command to download new browsers: pwsh bin/Debug/netX/playwright.ps1 install
My docker:
`FROM mcr.microsoft.com/azure-functions/dotnet:4 AS base
WORKDIR /home/site/wwwroot
EXPOSE 80
RUN apt-get update -yq
&& apt-get install wget -yq
&& wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
&& dpkg -i packages-microsoft-prod.deb
&& apt-get update -yq
&& apt-get install powershell -yq
RUN apt-get update
&& apt-get install -y
build-essential
cmake
git
wget
unzip
unixodbc-dev
&& rm -rf /var/lib/apt/lists/*
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/Monitoring/Monitoring.csproj", "Monitoring/"]
COPY ["src/Monitoring/", "Monitoring/"]
RUN dotnet restore "Monitoring/Monitoring.csproj"
COPY . .
WORKDIR "/src/Monitoring"
RUN dotnet build "Monitoring.csproj" -c Release -o /app/build
WORKDIR "/app/build"
RUN pwsh ./playwright.ps1 install
RUN pwsh ./playwright.ps1 install chromium
RUN pwsh ./playwright.ps1 install-deps chromium
WORKDIR "/src/Monitoring"
FROM build AS publish
RUN dotnet publish "Monitoring.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /home/site/wwwroot
COPY --from=publish /app/publish .
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
AzureFunctionsJobHost__Logging__Console__IsEnabled=true`
Anyone had a similar problem?
The text was updated successfully, but these errors were encountered: