Add CI step to build docker image #40
@ -1,7 +1,7 @@
 | 
			
		||||
# syntax = docker/dockerfile:1
 | 
			
		||||
 | 
			
		||||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
 | 
			
		||||
ARG RUBY_VERSION=3.2.0
 | 
			
		||||
ARG RUBY_VERSION=3.3.4
 | 
			
		||||
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
 | 
			
		||||
 | 
			
		||||
# Rails app lives here
 | 
			
		||||
@ -13,6 +13,7 @@ ENV RAILS_ENV="production" \
 | 
			
		||||
    BUNDLE_PATH="/usr/local/bundle" \
 | 
			
		||||
    BUNDLE_WITHOUT="development"
 | 
			
		||||
 | 
			
		||||
RUN apt-get update && apt-get install -y nodejs
 | 
			
		||||
 | 
			
		||||
# Throw-away build stage to reduce size of final image
 | 
			
		||||
FROM base as build
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user