SnapAPI/Dockerfile
OpenClaw 3c867c2769
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Failing after 7m53s
Promote to Production / Promote to Production (push) Failing after 8m55s
fix: skip puppeteer browser download in Docker build
2026-02-20 11:21:02 +00:00

19 lines
No EOL
539 B
Docker

FROM node:20-slim AS builder
WORKDIR /app
COPY package*.json ./
ENV PUPPETEER_SKIP_DOWNLOAD=true
RUN npm ci
COPY tsconfig.json ./
COPY src/ ./src/
RUN npx tsc
FROM node:20-slim
RUN apt-get update && apt-get install -y chromium fonts-freefont-ttf --no-install-recommends && rm -rf /var/lib/apt/lists/*
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY package*.json ./
COPY public/ ./public/
EXPOSE 3000
CMD ["node", "dist/index.js"]