dockerfile-rails 1.7.1 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcfaafd6fd11a3363f54dded17edd09285980dea47ee23020527cc0c4c924275
4
- data.tar.gz: c1b2f8f02fb35ce0e1958fe1b72392cd060532609fd9f00c355dbce3a206b145
3
+ metadata.gz: 45a9050bf01761b7e8542d0a5a98b757ba10ad8237169a2c5adde8ef0defb68b
4
+ data.tar.gz: ef2572435e69a2a38bbc40c1b7c5f6e8b2be9e68148be509d382b4f02f327e4d
5
5
  SHA512:
6
- metadata.gz: 02ea8f1cd74713c24d45b7570833ee48f7795023f1e6b22335909414940c260e327eac06772fdb1d655b6053b0e841ec4bc117ee748c02fd4afe40340a0a13bb
7
- data.tar.gz: f823e819cdf9dfa86ff97e7c5c7c3e9d6617ae0ecddc639e96ecf035b4112749490890f187bee33c8b94f0cb8d22551c6dd270c58b000fed947d7ebac431ad94
6
+ metadata.gz: bf4676f2c8b5f2eb9a41c52d9ec7b48527ed90b1659f8786b70518fee5961ab0f7762577893acc6266de2830d658a0385d3385fd989bce7de32b12826326b0df
7
+ data.tar.gz: 9547ff75541f16a457368d51bd3840f6e318e87dfa35a12c8db7b71928920ca5f6e1ee64b53a9d0e38fe565a4f49eb9cc4de608e2eb6b0391373f662a05bb920
@@ -72,7 +72,7 @@ class DockerfileGenerator < Rails::Generators::Base
72
72
  "libsqlite3-0" => "sqlite-dev",
73
73
  "libtiff-dev" => "tiff-dev",
74
74
  "libjemalloc2" => "jemalloc",
75
- "libvips" => "vips-dev",
75
+ "libvips" => "vips",
76
76
  "libyaml-dev" => "yaml-dev",
77
77
  "node-gyp" => "gyp",
78
78
  "pkg-config" => "pkgconfig",
@@ -511,7 +511,7 @@ private
511
511
 
512
512
  def using_bun?
513
513
  return @using_bun if @using_bun != nil
514
- @using_bun = File.exist?("bun.config.js") || File.exist?("bun.lockb")
514
+ @using_bun = File.exist?("bun.config.js") || File.exist?("bun.lockb") || File.exist?("bun.lock")
515
515
  end
516
516
 
517
517
  def references_ruby_version_file?
@@ -741,7 +741,7 @@ private
741
741
  packages = %w(build-essential libyaml-dev)
742
742
  packages += @@packages["build"] if @@packages["build"]
743
743
  packages += %w(nodejs npm) if (node_version == "lts") && (not using_execjs?)
744
- packages << "libffi-dev" if @@packages["ffi"]
744
+ packages << "libffi-dev" if @gemfile.include?("ffi")
745
745
 
746
746
  # add databases: sqlite3, postgres, mysql
747
747
  packages << "pkg-config" if options.sqlite3? || @sqlite3
@@ -2,6 +2,8 @@
2
2
  RUN <%= pkg_cache.map {|name, path| "--mount=type=cache,id=#{name},sharing=locked,target=#{path} \\"}.join("\n ") %>
3
3
  <%= repos %><%= pkg_update %> && \
4
4
  <%= pkg_install %> <%= packages.join(" ") %>
5
+ <% elsif options.alpine? && clean -%>
6
+ RUN apk add --no-cache <%= packages.join(" ") %>
5
7
  <% else -%>
6
8
  RUN <%= repos %><%= pkg_update %> && \
7
9
  <%= pkg_install %> <%= packages.join(" ") %><% if clean %> && \
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerfile-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-14 00:00:00.000000000 Z
10
+ date: 2025-01-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails