From 3a36f9b41b8899f79f4952787dabc1b761e90db5 Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sat, 30 Sep 2023 19:55:32 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'src/Api/Dockerfile?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Api/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index 99161cc..2602bd2 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -1,9 +1,8 @@ FROM node:latest WORKDIR /Api -ADD package.json /Api -ADD tsconfig.json /Api -ADD . /Api -RUN npm install -RUN npm run build +COPY package.json /Api +COPY tsconfig.json /Api +COPY . /Api +RUN npm install && npm run build EXPOSE 8080 -CMD [ "node","." ] \ No newline at end of file +CMD ["node", "."] \ No newline at end of file