Fix Jenkinsfile: force recreate + health check

This commit is contained in:
soufiane 2025-10-30 23:19:11 +01:00
parent b4eb137d58
commit afdfeced89
2 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,11 @@
FROM node:18 FROM node:18-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm ci --omit=dev
COPY . . COPY . .
ENV PORT=4000
EXPOSE 4000 EXPOSE 4000
CMD ["npm", "run", "start"] CMD ["npm", "start"]

View File

@ -13,7 +13,7 @@ const app = express();
// --- Middlewares globaux --- // --- Middlewares globaux ---
app.use( app.use(
cors({ 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, credentials: true,
}) })
); );