From 0d7064c1aefe3e252d74ecb0c229349c48f7f26d Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Mon, 4 Dec 2023 14:37:21 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'cryptide=5Fproject?= =?UTF-8?q?/Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptide_project/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cryptide_project/Dockerfile b/cryptide_project/Dockerfile index b9f9df9..2e977f5 100644 --- a/cryptide_project/Dockerfile +++ b/cryptide_project/Dockerfile @@ -4,16 +4,16 @@ FROM node:14 AS build WORKDIR /app # Copier le fichier package.json et yarn.lock (ou package-lock.json si vous utilisez npm) -COPY package.json yarn.lock ./ +COPY package.json package-lock.json ./ # Installer les dépendances -RUN yarn install +RUN npm install --force # Copier le reste des fichiers de l'application COPY . . # Construire l'application -RUN yarn build +RUN npm run build # Étape 2 : Configurer Nginx et copier les fichiers construits FROM nginx:alpine