✅ Fix Jenkinsfile: force recreate + health check
This commit is contained in:
parent
b4eb137d58
commit
afdfeced89
11
Dockerfile
11
Dockerfile
|
|
@ -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"]
|
||||||
|
|
|
||||||
2
index.js
2
index.js
|
|
@ -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,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user