From 3e0c8c25357a46f5bc389fd70c5dc1019c2e1ab6 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Fri, 21 Feb 2020 08:59:50 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Add=20build=20step=20for=20Gemfi?= =?UTF-8?q?le.lock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dcf7165..61564f7 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,10 @@ IMAGE=danjones000/danielrayjones/ruby-with-bundler:1.0.0 all: serve -.image: Gemfile Gemfile.lock +Gemfile.lock: + docker run -u $(shell id -u) --rm -v $(shell pwd):/app -w /app ruby:2.6.3 sh -c 'gem install bundler:2.0.2 && bundle install' + +.image: Gemfile.lock docker build -t $(IMAGE) . docker image inspect $(IMAGE) | jq -r '.[0].Id' | tee .image