Class Dockerfile.EnvironmentVariableInstruction

java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.MapInstruction
com.bmuschko.gradle.docker.tasks.image.Dockerfile.EnvironmentVariableInstruction
All Implemented Interfaces:
Dockerfile.Instruction
Enclosing class:
Dockerfile

public static class Dockerfile.EnvironmentVariableInstruction extends Dockerfile.MapInstruction
Represents a ENV instruction.
  • Field Details

  • Constructor Details

    • EnvironmentVariableInstruction

      public EnvironmentVariableInstruction(String key, String value)
    • EnvironmentVariableInstruction

      public EnvironmentVariableInstruction(Map<String,String> envVars)
    • EnvironmentVariableInstruction

      public EnvironmentVariableInstruction(Provider<Map<String,String>> provider)
  • Method Details

    • getKeyword

      public String getKeyword()
      Gets the keyword of the instruction as used in the Dockerfile.

      For example the keyword of the Dockerfile.FromInstruction is FROM.

      Returns:
      The instruction keyword