Class: Kuby::Docker::AssetsPhase

Inherits:
Layer
  • Object
show all
Defined in:
lib/kuby/docker/assets_phase.rb

Instance Attribute Summary

Attributes inherited from Layer

#environment

Instance Method Summary collapse

Methods inherited from Layer

#initialize

Constructor Details

This class inherits a constructor from Kuby::Docker::Layer

Instance Method Details

#apply_to(dockerfile) ⇒ Object

T::Sig::WithoutRuntime.sig { override.params(dockerfile: Dockerfile).void }



9
10
11
12
13
# File 'lib/kuby/docker/assets_phase.rb', line 9

def apply_to(dockerfile)
  dockerfile.run(
    'bundle', 'exec', 'rake', 'assets:precompile'
  )
end