https://github.com/sharshenov/ruby-for-rails
1.1K
Basically, the same alpine ruby images, but with few of changes:
postgresql-client, xz-libs, tzdata packages are preinstalledspace_efficient_bundle_install script addedspace_efficient_assets_precompile script addedspace_efficient_bundle_install scriptThis script installs build dependencies for bundle install and cleanups afterwards. Default list:
You can pass extra dependencies. For example space_efficient_bundle_install git sqlite-dev
space_efficient_assets_precompile scriptThis script installs Nodejs & Yarn for rake assets:precompile and cleanups afterwards (including node_modules & yarn cache dirs).
FROM sharshenov/ruby-for-rails:2.6.5-alpine
COPY Gemfile Gemfile.lock ./
RUN space_efficient_bundle_install
ENV RAILS_ENV=production
ENV RAILS_LOG_TO_STDOUT=true
COPY . .
RUN space_efficient_assets_precompile
TARGET_VERSION=2.7.1-alpine make
Content type
Image
Digest
Size
26.6 MB
Last updated
about 5 years ago
docker pull sharshenov/ruby-for-rails:2.6-alpine