Skip to content

Commit a32822f

Browse files
authored
Merge pull request rails#52589 from jeromedalbert/sqlite3-dockerfile
Use sqlite3 package in default Dockerfile for apps using sqlite3
2 parents 62aced3 + 6e7b599 commit a32822f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

railties/lib/rails/generators/database.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def gem
227227
end
228228

229229
def base_package
230-
"libsqlite3-0"
230+
"sqlite3"
231231
end
232232

233233
def build_package

railties/test/fixtures/Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /rails
99

1010
# Install base packages
1111
RUN apt-get update -qq && \
12-
apt-get install --no-install-recommends -y curl libsqlite3-0 libvips
12+
apt-get install --no-install-recommends -y curl libvips sqlite3
1313

1414
# Set production environment
1515
ENV RAILS_ENV="production" \

railties/test/generators/db_system_change_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class ChangeGeneratorTest < Rails::Generators::TestCase
133133

134134
assert_file("Dockerfile") do |content|
135135
assert_match "build-essential git", content
136-
assert_match "curl libsqlite3-0 libvips", content
136+
assert_match "curl libvips sqlite3", content
137137
end
138138

139139
assert_devcontainer_json_file do |content|

0 commit comments

Comments
 (0)