Test CI/CD 3 & fix healthcheck

This commit is contained in:
2026-03-26 20:42:37 +03:00
parent 1276334a62
commit c4ed7e6fc8
10 changed files with 14 additions and 28 deletions

View File

@@ -2,8 +2,8 @@ FROM node:22-bookworm-slim AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY package*.json ./
RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
COPY . .
RUN npm run build
@@ -15,8 +15,8 @@ WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
COPY package.json package-lock.json ./
RUN npm ci --omit=dev && npm cache clean --force
COPY package*.json ./
RUN if [ -f package-lock.json ]; then npm ci --omit=dev; else npm install --omit=dev; fi && npm cache clean --force
COPY --from=builder /app/dist ./dist