From d9cce44a0b93ea9bc1043530e35d78a86f675a8d Mon Sep 17 00:00:00 2001 From: Sithranduil Date: Tue, 6 Oct 2020 19:35:58 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20l'image=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7fa67ce..f40902e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine -RUN apk add --update nodejs npm -ADD . . -RUN npm install +FROM alpine:latest +RUN apk add nodejs npm --no-cache +COPY . . +RUN npm install --only=prod CMD ["node", "index.js"] EXPOSE 9591 \ No newline at end of file