Some checks failed
Deploy to Docker / deploy (push) Failing after 33s
Switch Docker base image from node:22-alpine to Playwright Noble for in-container Chromium support. Add persistent cache volume for schematics. New files: schematics browser, cache, Java block ID mapping. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
412 B
Docker
18 lines
412 B
Docker
FROM mcr.microsoft.com/playwright/javascript:v1.58.2-noble
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm ci --production 2>/dev/null || npm install --production
|
|
|
|
COPY src/ ./src/
|
|
|
|
# Create cache directory owned by pwuser (default user in playwright image)
|
|
RUN mkdir -p /app/cache && chown -R pwuser:pwuser /app/cache
|
|
|
|
EXPOSE 3001 3002
|
|
|
|
USER pwuser
|
|
|
|
CMD ["node", "src/index.js"]
|