From db1cd8df4cca6b066c6febf23e586e4cdba5e9eb Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 25 Mar 2020 19:14:15 +0100 Subject: [PATCH] Try to fix the path correctly for cloning --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 014e4d9..670a016 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,6 @@ FROM node:8-stretch ENV NODE_ENV production -WORKDIR /usr/src/app - COPY . ${WORKDIR} RUN apt-get update && \ @@ -19,9 +17,12 @@ RUN apt-get update && \ libtool \ m4 -RUN git clone https://github.com/beakerbrowser/homebase /usr/src/app && \ +RUN \ + git clone https://github.com/beakerbrowser/homebase /usr/src/app && \ git checkout 474976ff9e839e06c37a83625fe0832fc26fefa1 +WORKDIR /usr/src/app + RUN npm install --only=production RUN npm install pm2@4.2.3 -g