Skip to content

Commit

Permalink
Merge pull request #1128 from api3dao/fix-docker-build
Browse files Browse the repository at this point in the history
Fix lerna version in Docker build
  • Loading branch information
amarthadan authored May 26, 2022
2 parents de3af97 + ea31b6f commit 764af49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ RUN git clone ${repository} ${buildDir} -b ${branch}
# Production dependencies
FROM source${build} AS deps

RUN yarn global add lerna && \
# Install the same version of lerna we're using as dependency
RUN yarn global add lerna@$(grep '^\s*"lerna"' package.json | cut -d '^' -f 2 | cut -d '"' -f 1) && \
lerna bootstrap -- --production --no-optional --ignore-scripts && \
find -L node_modules/@api3 -maxdepth 1 -type d -name "airnode-*" | xargs rm && \
mkdir -p ${dependenciesDir}/common && \
Expand Down

0 comments on commit 764af49

Please sign in to comment.