From 120bbddc21e15f9257c68b74c9c1ea239d780258 Mon Sep 17 00:00:00 2001 From: 24c02 <163450896+24c02@users.noreply.github.com> Date: Fri, 24 Jan 2025 12:29:03 -0500 Subject: [PATCH] speed up image build by caching gem layer --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7c7c87b..688e3c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file