diff --git a/lib/generators/dockerfile_generator.rb b/lib/generators/dockerfile_generator.rb index 4b13c8f..760cef3 100644 --- a/lib/generators/dockerfile_generator.rb +++ b/lib/generators/dockerfile_generator.rb @@ -982,7 +982,7 @@ def base_instructions instructions = IO.read @@instructions["base"] if instructions.start_with? "#!" - instructions = "# custom instructions\nRUN #{@instructions["base"].strip}" + instructions = "# custom instructions\nRUN #{@@instructions["base"].strip}" end instructions.html_safe @@ -994,7 +994,7 @@ def build_instructions instructions = IO.read @@instructions["build"] if instructions.start_with? "#!" - instructions = "# custom build instructions\nRUN #{@instructions["build"].strip}" + instructions = "# custom build instructions\nRUN #{@@instructions["build"].strip}" end instructions.html_safe @@ -1006,7 +1006,7 @@ def deploy_instructions instructions = IO.read @@instructions["deploy"] if instructions.start_with? "#!" - instructions = "# custom deploy instructions\nRUN #{@instructions["deploy"].strip}" + instructions = "# custom deploy instructions\nRUN #{@@instructions["deploy"].strip}" end instructions.html_safe