Files
mc-ai-bridge/Dockerfile
SysAdmin a6fa95e3f3
All checks were successful
Deploy to Docker / deploy (push) Successful in 2m12s
fix(docker): use node:20-slim base image instead of unavailable Playwright image
The Playwright Docker image v1.58.2-noble doesn't exist on MCR, breaking
the CI build. Switch to node:20-slim and install Playwright chromium at
build time for resilience against future version mismatches.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 00:17:10 +00:00

23 lines
516 B
Docker

FROM node:20-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --production 2>/dev/null || npm install --production
# Install Playwright browsers + OS dependencies (chromium only to save space)
RUN npx playwright install --with-deps chromium
COPY src/ ./src/
# Create cache directory
RUN mkdir -p /app/cache
EXPOSE 3001 3002
CMD ["node", "src/index.js"]