From a3a8667d6d1a17a9d1df58b369bf76b3d8a4f1e0 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Mon, 6 Sep 2021 11:57:37 +0200 Subject: [PATCH] chore: improve docker image --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 43a5cfe..e5e59b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,8 @@ EXPOSE $PORT WORKDIR /app -RUN npm install -g nodemon - -COPY package*.json . +COPY package.json . +COPY package-lock.json . RUN npm install @@ -15,4 +14,4 @@ COPY src . COPY index.ts . COPY public . -CMD [ "nodemon", "--transpile-only", "index.ts" ] \ No newline at end of file +CMD [ "npm", "run", "start" ] \ No newline at end of file