speed up image build by caching gem layer

This commit is contained in:
24c02 2025-01-24 12:29:03 -05:00
parent 647da38a2b
commit 120bbddc21

View file

@ -1,9 +1,11 @@
FROM ruby:3.3.4
WORKDIR /code
COPY . /code
COPY Gemfile Gemfile.lock /code/
RUN bundle install
COPY . /code
CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "-p", "4567"]
EXPOSE 4567