From afdfeced896eaedb0e24bfb634091a579c906c86 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 30 Oct 2025 23:19:11 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20Jenkinsfile:=20force=20recrea?= =?UTF-8?q?te=20+=20health=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 +++++++---- index.js | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e57cf252..7e78bf3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ -FROM node:18 +FROM node:18-alpine + WORKDIR /app + COPY package*.json ./ -RUN npm ci +RUN npm ci --omit=dev + COPY . . -ENV PORT=4000 + EXPOSE 4000 -CMD ["npm", "run", "start"] +CMD ["npm", "start"] diff --git a/index.js b/index.js index 51ea8d1c..975cb715 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ const app = express(); // --- Middlewares globaux --- app.use( cors({ - origin: ["http://localhost:5173", "https://dsp5-archi-o24a-15m-g3.fr"], + origin: ["http://localhost:3000", "https://dsp5-archi-o24a-15m-g3.fr"], credentials: true, }) );