lib/generators/dockerfile_generator.rb in dockerfile-rails-1.7.1 vs lib/generators/dockerfile_generator.rb in dockerfile-rails-1.7.2
- old
+ new
@@ -739,10 +739,10 @@
def build_packages
# start with the essentials
packages = %w(build-essential libyaml-dev)
packages += @@packages["build"] if @@packages["build"]
packages += %w(nodejs npm) if (node_version == "lts") && (not using_execjs?)
- packages << "libffi-dev" if @@packages["ffi"]
+ packages << "libffi-dev" if @gemfile.include?("ffi")
# add databases: sqlite3, postgres, mysql
packages << "pkg-config" if options.sqlite3? || @sqlite3
packages << "libpq-dev" if options.postgresql? || @postgresql
packages << "freetds-dev" if options.sqlserver? || @sqlserver