From a3dcc981734c4f548d8cf5eba0014c748016bbf3 Mon Sep 17 00:00:00 2001 From: ssube Date: Tue, 17 Sep 2019 19:09:24 -0500 Subject: [PATCH] fix(build): add packages to image before output --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26c4801..92c6819 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,12 @@ FROM node:12-stretch COPY package.json /app/package.json COPY yarn.lock /app/yarn.lock -COPY . /app - WORKDIR /app RUN yarn install --production + +COPY . /app + RUN yarn global add file:$(pwd) ENV PATH="${PATH}:$(yarn global bin)"