feat(schematics): add schematic search/build with Playwright browser support
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>
This commit is contained in:
2026-03-17 00:07:49 +00:00
parent 911471b564
commit 2e91bcf63d
12 changed files with 1723 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM node:22-alpine
FROM mcr.microsoft.com/playwright/javascript:v1.58.2-noble
WORKDIR /app
@@ -7,8 +7,11 @@ 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 node
USER pwuser
CMD ["node", "src/index.js"]