FROM node:alpine

RUN mkdir /client

RUN apk add --no-cache git build-base libtool autoconf automake jq
RUN npm install -g yarn 

ADD ./package.json /client
ADD ./yarn.lock /client

WORKDIR /client

RUN yarn install --verbose

# ----------------

FROM node:alpine

RUN mkdir /client
WORKDIR /client
COPY --from=0 /client .