Skip to content

Commit 7f4d6c0

Browse files
committed
Dockerfile: run yarn install with --frozen-lockfile
Similar to BUNDLE_DEPLOYMENT, this flag make sure no package is upgraded or downgraded in the lockfile. Ref: https://classic.yarnpkg.com/lang/en/docs/cli/install/ > If you need reproducible dependencies, which is usually the > case with the continuous integration systems, you > should pass `--frozen-lockfile` flag.
1 parent f23ede5 commit 7f4d6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN bundle install && \
4343
<% if using_node? -%>
4444
# Install node modules
4545
COPY package.json yarn.lock ./
46-
RUN yarn install
46+
RUN yarn install --frozen-lockfile
4747

4848
<% end -%>
4949
# Copy application code

0 commit comments

Comments
 (0)