All checks were successful
		
		
	
	Run unit tests / copyright_notice (pull_request) Successful in 33s
				
			Run unit tests / rubocop (pull_request) Successful in 2m14s
				
			Run unit tests / check-licenses (pull_request) Successful in 2m25s
				
			Run unit tests / unit_tests (pull_request) Successful in 3m42s
				
			Run unit tests / build-static-assets (pull_request) Successful in 40m28s
				
			
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
# syntax = docker/dockerfile:1
 | 
						|
 | 
						|
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
 | 
						|
ARG RUBY_VERSION=3.4.3
 | 
						|
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
 | 
						|
 | 
						|
# Rails app lives here
 | 
						|
WORKDIR /rails
 | 
						|
 | 
						|
RUN apt-get update && apt-get install -y nodejs wkhtmltopdf
 | 
						|
 | 
						|
FROM base as build
 | 
						|
 | 
						|
# Install packages needed to build gems
 | 
						|
RUN apt-get update -qq && \
 | 
						|
    apt-get install --no-install-recommends -y build-essential git libpq-dev libvips pkg-config libyaml-dev
 | 
						|
 | 
						|
# Install application gems
 | 
						|
COPY Gemfile Gemfile.lock ./
 | 
						|
RUN bundle install
 | 
						|
 | 
						|
# Copy application code
 | 
						|
COPY . .
 | 
						|
 | 
						|
# Final stage for app image
 | 
						|
FROM base
 | 
						|
 | 
						|
# Install packages needed for deployment
 | 
						|
RUN apt-get update -qq && \
 | 
						|
    apt-get install --no-install-recommends -y curl libvips postgresql-client && \
 | 
						|
    rm -rf /var/lib/apt/lists /var/cache/apt/archives
 | 
						|
 | 
						|
# Copy built artifacts: gems, application
 | 
						|
COPY --from=build /usr/local/bundle /usr/local/bundle
 | 
						|
COPY --from=build /rails /rails
 | 
						|
 | 
						|
# Entrypoint prepares the database.
 | 
						|
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
 | 
						|
 | 
						|
# Start the server by default, this can be overwritten at runtime
 | 
						|
EXPOSE 3000
 | 
						|
CMD ["./bin/rails", "server", "--binding=0.0.0.0"]
 |