-
Notifications
You must be signed in to change notification settings - Fork 210
fix(rails): update Dockerfile #1580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(rails): update Dockerfile #1580
Conversation
kumaripuja-ssk
commented
Jul 25, 2025
- Updated URLs in Docker file as per the requirement.
- Related Buganizer: http://b/433251254
bundle config set --local deployment 'true' && \ | ||
bundle config set --local without 'development test' && \ | ||
bundle install | ||
bundle config set --local deployment 'true' && \ | ||
bundle config set --local without 'development test' && \ | ||
bundle install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: It's useful when using command continuations to use indenting to make it clear that this is all one layer, one run command.
Please apply to other commands.
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x buster main" > \ | ||
/etc/apt/sources.list.d/nodesource.list && \ | ||
apt-get update && \ | ||
apt-get install -y nodejs lsb-release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: it would make more sense to install the lsb-release package in the same step that the repository is setup
# [START cloudrun_rails_base_image] | ||
# Pinning the OS to buster because the nodejs install script is buster-specific. | ||
# Be sure to update the nodejs install command if the base image OS is updated. | ||
FROM ruby:3.2-buster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: if there's an issue with buster, why not update the base image to bookworm? Does that version have the same issue?