fix: compile TypeScript in Docker build — dist/ was never built in CI, connection resilience code was missing from images
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 10m59s
Promote to Production / Deploy to Production (push) Successful in 1m15s

This commit is contained in:
OpenClaw Deployer 2026-02-18 16:19:59 +00:00
parent 95ca10175f
commit e611609580
6 changed files with 183 additions and 50 deletions

View file

@ -13,11 +13,15 @@ RUN groupadd --gid 1001 docfast \
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
# Build stage - compile TypeScript
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY package*.json tsconfig.json ./
RUN npm install
COPY src/ src/
RUN npx tsc
COPY dist/ dist/
# Remove dev dependencies
RUN npm prune --omit=dev
COPY scripts/ scripts/
COPY public/ public/
RUN node scripts/build-html.cjs