diff --git a/Dockerfile b/Dockerfile index f306e91..9e958d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,34 @@ FROM node:20 WORKDIR /app + COPY package.json yarn.lock ./ RUN yarn install COPY . . -EXPOSE 3000 +# ✅ Puppeteer dependencies for Chromium +RUN apt-get update && apt-get install -y \ + wget \ + ca-certificates \ + fonts-liberation \ + libappindicator3-1 \ + libasound2 \ + libatk-bridge2.0-0 \ + libatk1.0-0 \ + libcups2 \ + libdbus-1-3 \ + libdrm2 \ + libgbm1 \ + libgtk-3-0 \ + libnspr4 \ + libnss3 \ + libx11-xcb1 \ + libxcomposite1 \ + libxdamage1 \ + libxrandr2 \ + xdg-utils \ + --no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/* + +EXPOSE 3001 CMD ["yarn", "start"]