- Changed npm ci to npm install in Dockerfiles (no lock files) - Added git to whatsapp-core alpine image for npm dependencies - Fixed TypeScript type errors in routes.ts (string | string[]) - Fixed SessionManager.ts type compatibility with Baileys - Disabled noUnusedLocals/noUnusedParameters in frontend tsconfig Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
238 B
Docker
20 lines
238 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache python3 make g++ git
|
|
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
COPY tsconfig.json ./
|
|
COPY src ./src
|
|
|
|
RUN npm run build
|
|
|
|
RUN mkdir -p /app/sessions
|
|
|
|
EXPOSE 3001
|
|
|
|
CMD ["npm", "start"]
|