From ae76e9db8d8a48a809a057e3c5c5da29c200a3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 1 May 2020 19:45:19 +0200 Subject: [PATCH] Install dependencies first, remove duplicated workdir --- backend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 5863801..b458ac4 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,12 +7,12 @@ apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testin WORKDIR /app -COPY ./ /app/ - -WORKDIR /app +COPY package.json /app/ RUN npm install +COPY ./ /app/ + EXPOSE 17442 CMD [ "node", "app.js" ]