Learn R Programming

containerit (version 0.6.0)

Dockerfile-class: An S4 class to represent a Dockerfile

Description

An S4 class to represent a Dockerfile

Arguments

Value

an object of class Dockerfile

Slots

image

the base image, used in the FROM statement (character)

maintainer

a maintainer label or an object of class maintainer (the latter is debrecated)

instructions

an ordered list of instructions in the Dockerfile (list of character)

entrypoint

the entrypoint instruction applied to the container

cmd

the default cmd instruction applied to the container

Details

The entrypoint and cmd are provided outside of instructions, as only one of them takes effect. If Cmd or Entrypoint instructions are provided as part of the regular instructions, they appear in the Dockerfile but have no effect.