Merge pull request #52589 from jeromedalbert/sqlite3-dockerfile

Use sqlite3 package in default Dockerfile for apps using sqlite3
This commit is contained in:
Jean Boussier 2024-08-13 10:28:22 +02:00 committed by GitHub
commit a32822f6ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -227,7 +227,7 @@ module Rails
end
def base_package
"libsqlite3-0"
"sqlite3"
end
def build_package

View File

@ -9,7 +9,7 @@ WORKDIR /rails
# Install base packages
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y curl libsqlite3-0 libvips
apt-get install --no-install-recommends -y curl libvips sqlite3
# Set production environment
ENV RAILS_ENV="production" \

View File

@ -133,7 +133,7 @@ module Rails
assert_file("Dockerfile") do |content|
assert_match "build-essential git", content
assert_match "curl libsqlite3-0 libvips", content
assert_match "curl libvips sqlite3", content
end
assert_devcontainer_json_file do |content|