mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-09 09:13:10 +00:00
fix: build web bundle in dockerfile for browser sim
This commit is contained in:
parent
f432d6f42d
commit
8338b43cb4
@ -35,13 +35,10 @@ RUN npm install --no-audit --no-fund
|
||||
COPY src ./src
|
||||
COPY types ./types
|
||||
COPY tsconfig.json ./
|
||||
COPY web/index.html ./web/index.html
|
||||
COPY web ./web
|
||||
|
||||
# Copy pre-built files
|
||||
COPY dist ./dist
|
||||
|
||||
# If dist doesn't exist, try to build (but skip web build due to monorepo issues)
|
||||
RUN if [ ! -f "dist/src/server.js" ]; then npm run build:web || echo "Web build failed, using existing files"; fi
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Install Playwright browsers (Chromium only) at runtime layer
|
||||
RUN npx playwright install --with-deps chromium
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user