SnapAPI/Dockerfile
OpenClaw DevOps b58f634318
Some checks failed
Deploy to Staging / build-and-deploy (push) Failing after 9m44s
feat: initial codebase v0.4.1
- Extract complete codebase from running staging pod
- Add Dockerfile with multi-stage build for Node.js + Puppeteer
- Configure CI/CD workflows for staging and production deployment
- Include all source files, configs, and public assets
2026-02-19 17:05:16 +00:00

18 lines
No EOL
506 B
Docker

FROM node:20-slim AS builder
WORKDIR /app
COPY package*.json ./
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"]