19 lines
482 B
Docker
19 lines
482 B
Docker
# Research Chat – Web-App mit Playwright-Chromium
|
||
FROM node:26-slim
|
||
|
||
# Playwright-Systemabhängigkeiten (Chromium) werden mit --with-deps installiert
|
||
WORKDIR /app
|
||
|
||
# Erst Abhängigkeiten (Docker-Layer-Cache)
|
||
COPY package.json package-lock.json* ./
|
||
RUN npm install --no-fund --no-audit
|
||
|
||
# Chromium + Systemdeps installieren (--with-deps braucht apt-get, in slim enthalten)
|
||
RUN npx playwright install --with-deps chromium
|
||
|
||
# App-Code
|
||
COPY . .
|
||
|
||
EXPOSE 3000
|
||
CMD ["node", "server.js"]
|