- 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>
19 lines
278 B
Docker
19 lines
278 B
Docker
FROM node:20-alpine as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|