feat(schematics): add schematic search/build with Playwright browser support
Some checks failed
Deploy to Docker / deploy (push) Failing after 33s
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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user