mirror of https://github.com/rails/rails
Merge pull request #52589 from jeromedalbert/sqlite3-dockerfile
Use sqlite3 package in default Dockerfile for apps using sqlite3
This commit is contained in:
commit
a32822f6ae
|
@ -227,7 +227,7 @@ module Rails
|
|||
end
|
||||
|
||||
def base_package
|
||||
"libsqlite3-0"
|
||||
"sqlite3"
|
||||
end
|
||||
|
||||
def build_package
|
||||
|
|
|
@ -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" \
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue