All checks were successful
Deploy to Docker / deploy (push) Successful in 2m12s
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>
23 lines
516 B
Docker
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"]
|