🛠 Add build step for Gemfile.lock
This commit is contained in:
		
					parent
					
						
							
								95122a2ee3
							
						
					
				
			
			
				commit
				
					
						3e0c8c2535
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -6,7 +6,10 @@ IMAGE=danjones000/danielrayjones/ruby-with-bundler:1.0.0 | ||||||
| 
 | 
 | ||||||
| all: serve | 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 build -t $(IMAGE) . | ||||||
| 	docker image inspect $(IMAGE) | jq -r '.[0].Id' | tee .image | 	docker image inspect $(IMAGE) | jq -r '.[0].Id' | tee .image | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue