Add CI step to build docker image #40

Merged
bustikiller merged 2 commits from docker into main 2024-08-12 08:21:38 +00:00
Showing only changes of commit 44274fddca - Show all commits

View File

@ -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