Class: Kuby::Docker::YarnPhase
- Defined in:
- lib/kuby/docker/yarn_phase.rb
Instance Attribute Summary
Attributes inherited from Phase
Instance Method Summary collapse
Methods inherited from Phase
Constructor Details
This class inherits a constructor from Kuby::Docker::Phase
Instance Method Details
#apply_to(dockerfile) ⇒ Object
4 5 6 7 8 |
# File 'lib/kuby/docker/yarn_phase.rb', line 4 def apply_to(dockerfile) dockerfile.copy('package.json', '.') dockerfile.copy('yarn.lock*', '.') dockerfile.run('yarn', 'install') end |