Skip to content

Commit aeddad3

Browse files
committed
Do not install yarn latest in docker build
As per the documentation for `yarn set version`: The version specifier can be: - a tag: - `latest` / `berry` / `stable` -> the most recent stable berry (`>=2.0.0`) release So `yarn set version berry` is equivalent to `yarn set version latest`, which will install newly released versions of yarn. There was a release of yarn v4.0.0 yesterday - https://github.com/yarnpkg/berry/releases/tag/%40yarnpkg%2Fcli%2F4.0.0 which is now breaking the build, because it produces a slightly different lockfile. The docker build should use whichever yarn version package.json uses, not install the latest version on the fly.
1 parent 0f5d1b2 commit aeddad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR $APP_HOME
99
COPY Gemfile* .ruby-version ./
1010
RUN bundle install
1111
COPY package.json yarn.lock ./
12-
RUN yarn set version berry && yarn install --immutable
12+
RUN yarn install --immutable
1313
COPY . .
1414
RUN bootsnap precompile --gemfile .
1515
RUN rails assets:precompile && rm -fr log

0 commit comments

Comments
 (0)