🚀 Patch auto

This commit is contained in:
karim hassan
2025-08-24 23:00:40 +00:00
parent 92e6afff00
commit f1103d67a0
1314 changed files with 2511 additions and 562 deletions

View File

@@ -1,12 +1,14 @@
FROM node:20-alpine AS deps
WORKDIR /app
COPY package.json package-lock.json* .npmrc* ./
RUN npm ci --omit=dev
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=deps /app/node_modules ./node_modules
COPY package*.json ./
RUN npm ci --omit=dev || npm install --production
COPY . .
EXPOSE 8080
CMD ["node", "server.js"]
RUN apk add --no-cache curl
EXPOSE 4000
HEALTHCHECK --interval=10s --timeout=3s --retries=12 --start-period=30s CMD curl -fsS http://localhost:4000/api/health || exit 1
CMD ["node","src/index.js"]