Gemfile.lock not found error

vincexivTRIAL

a year ago

[stage-0 6/13] COPY Gemfile.lock /app/Gemfile.lock:

Dockerfile:20

18 | ENV NIXPACKSPATH /usr/local/rvm/rubies/ruby-2.7.4/bin:/usr/local/rvm/gems/ruby-2.7.4/bin:/usr/local/rvm/gems/ruby-2.7.4@global/bin:$NIXPACKSPATH

19 | COPY Gemfile /app/Gemfile

20 | >>> COPY Gemfile.lock /app/Gemfile.lock

21 | RUN --mount=type=cache,id=s/753a1517-281e-449a-b2e6-c291fb959119-/root/bundle/cache,target=/root/.bundle/cache bundle install

22 | RUN --mount=type=cache,id=s/753a1517-281e-449a-b2e6-c291fb959119-/root/bundle/cache,target=/root/.bundle/cache bundle exec bootsnap precompile --gemfile

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 51cc2d4b-12f6-4af2-8147-944f6233b23f::or5s8fwgauludj5044uncp89i: "/Gemfile.lock": not found

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

a year ago

Do you have a Gemfile.lock in your repository?