Skip to content

Commit

Permalink
Merge pull request #47546 from rails/revert-47500-patch-3
Browse files Browse the repository at this point in the history
Revert "Use `COPY --link` in Dockerfile"
  • Loading branch information
zzak committed Mar 3, 2023
2 parents c060c24 + 654d0be commit 6d7b42f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -34,20 +34,20 @@ RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz

<% end -%>
# Install application gems
COPY --link Gemfile Gemfile.lock ./
COPY Gemfile Gemfile.lock ./
RUN bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git<% if depend_on_bootsnap? -%> && \
bundle exec bootsnap precompile --gemfile
<% end %>

<% if using_node? -%>
# Install node modules
COPY --link package.json yarn.lock ./
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

<% end -%>
# Copy application code
COPY --link . .
COPY . .

<% if depend_on_bootsnap? -%>
# Precompile bootsnap code for faster boot times
Expand Down

0 comments on commit 6d7b42f

Please sign in to comment.