FROM node:16-alpine WORKDIR /abacus-monorepo RUN apk add --update --no-cache git g++ make py3-pip RUN yarn set version 3.2.0 RUN yarn plugin import workspace-tools # Copy package.json and friends COPY package.json yarn.lock .yarnrc.yml ./ COPY .yarn/plugins ./.yarn/plugins COPY .yarn/releases ./.yarn/releases COPY typescript/utils/package.json ./typescript/utils/ COPY typescript/sdk/package.json ./typescript/sdk/ COPY typescript/helloworld/package.json ./typescript/helloworld/ COPY typescript/ica/package.json ./typescript/ica/ COPY typescript/infra/package.json ./typescript/infra/ COPY solidity/core/package.json ./solidity/core/ COPY solidity/app/package.json ./solidity/app/ RUN yarn install && yarn cache clean # Copy everything else COPY tsconfig.json ./ COPY typescript ./typescript COPY solidity ./solidity RUN yarn build