Class: Kuby::Docker::YarnPhase
- Extended by:
- T::Sig
- Defined in:
- lib/kuby/docker/yarn_phase.rb
Instance Attribute Summary
Attributes inherited from Layer
Instance Method Summary collapse
Methods inherited from Layer
Constructor Details
This class inherits a constructor from Kuby::Docker::Layer
Instance Method Details
#apply_to(dockerfile) ⇒ Object
9 10 11 12 13 |
# File 'lib/kuby/docker/yarn_phase.rb', line 9 def apply_to(dockerfile) dockerfile.copy('package.json', '.') dockerfile.copy('yarn.lock*', '.') dockerfile.run('yarn', 'install') end |