Unable to run Docker container in Azure App Service

Krum Bagashev 1 Reputation point
2022-06-15T13:35:34.643+00:00

Hello,

I have this Dockerfile

FROM node:18.3  
  
RUN mkdir -p /usr/src/app  
WORKDIR /usr/src/app  
  
COPY package*.json ./  
  
RUN npm install  
  
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true  
RUN apt-get update && apt-get install curl gnupg -y \  
  && curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \  
  && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \  
  && apt-get update \  
  && apt-get install google-chrome-stable -y --no-install-recommends \  
  && rm -rf /var/lib/apt/lists/*  
  
COPY . .  
  
EXPOSE 8080  
  
CMD [ "node", "server.js" ]  

I want to run a Puppeteer instance from it - https://github.com/puppeteer/puppeteer

Locally it works fine, but when I deploy to an Azure App Service for linux containers, I get

211640-untitled.png

Why is it searching for a 'docker' module?

I've set up a build/release pipeline that gets executed successfully.

Thank you

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,493 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,094 questions
{count} votes