mirror of
https://github.com/Manavarya09/design-extract.git
synced 2026-09-19 02:41:14 +08:00
037db816b4
postinstall downloaded Chromium on every npm install, which fails in CI, Docker and behind proxies. Browsers are now installed on demand. - designlang install-browser [--with-deps] installs the Chromium that matches the bundled playwright - src/browser.js launchChromium(): bundled Chromium, then system Chrome, then a BROWSER_UNAVAILABLE error that names the fix; all 13 launch sites use it - doctor, the extraction error and smithery.dockerfile point at install-browser
17 lines
691 B
Docker
17 lines
691 B
Docker
FROM node:20-slim
|
|
|
|
# Playwright chromium deps
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 \
|
|
libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 \
|
|
libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 \
|
|
libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
|
|
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 \
|
|
libxss1 libxtst6 wget \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN npm install -g designlang && designlang install-browser
|
|
|
|
WORKDIR /app
|
|
ENTRYPOINT ["npx", "designlang", "mcp"]
|