From 9294d81308d75cee59704bcfc22bde03927e9637 Mon Sep 17 00:00:00 2001 From: Jannik Hollenbach Date: Thu, 9 Jan 2020 11:32:02 +0100 Subject: [PATCH] Correct npm install `npm install` was running in the wrong directory, which lead to the dependencies not gettings installed correctly. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12829a3..f166c65 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,13 +28,12 @@ RUN ./configure && \ FROM node:12-alpine -COPY package.json package-lock.json /src/ +COPY package.json package-lock.json /src/ +WORKDIR /src RUN npm install --production COPY --from=buildcontainer /usr/local/ /usr/local COPY . /src -WORKDIR /src - RUN apk update && \ apk upgrade --no-cache && \ apk add libssh2 --no-cache