Class: Kuby::Docker::YarnPhase

Inherits:
Phase
  • Object
show all
Defined in:
lib/kuby/docker/yarn_phase.rb

Instance Attribute Summary

Attributes inherited from Phase

#definition

Instance Method Summary collapse

Methods inherited from Phase

#initialize

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