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