1
0
Fork 0

fix(build): add packages to image before output

This commit is contained in:
ssube 2019-09-17 19:09:24 -05:00
parent 0db2ec166e
commit a3dcc98173
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 3 additions and 2 deletions

View File

@ -4,11 +4,12 @@ FROM node:12-stretch
COPY package.json /app/package.json COPY package.json /app/package.json
COPY yarn.lock /app/yarn.lock COPY yarn.lock /app/yarn.lock
COPY . /app
WORKDIR /app WORKDIR /app
RUN yarn install --production RUN yarn install --production
COPY . /app
RUN yarn global add file:$(pwd) RUN yarn global add file:$(pwd)
ENV PATH="${PATH}:$(yarn global bin)" ENV PATH="${PATH}:$(yarn global bin)"