1. Layerfile Reference
  2. FROM

FROM [source]

The FROM instruction tells webapp.io what base to use to run tests from.

There can only be one FROM line in a Layerfile, and it must always be the first directive in the Layerfile.

For now, only FROM vm/ubuntu:18.04 is allowed as a top level, but inheriting from other Layerfiles is possible.

‚Äč
Examples

  • Use FROM vm/ubuntu:18.04 to use ubuntu:18.04 as the base.
  • Use FROM ../base to inherit from the file at ../base/Layerfile relative to the current Layerfile
  • Use FROM /base to inherit from the file at (repo root)/base/Layerfile)
  • Use FROM webapp.io/rails:2.7.1 to inherit from the shared Layerfile library configuration rails:2.7.1
  • Use FROM my-org/base:v1.0.0 to inherit from a common image for your organization in the shared Layerfile library