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, }) );