bin/create-action.js
async function createDockerfile (answers) {
  const dockerfileTemplate = await readTemplate('Dockerfile')
  return dockerfileTemplate
    .replace(':NAME', answers.name)
    .replace(':DESCRIPTION', answers.description)
    .replace(':ICON', answers.icon)
    .replace(':COLOR', answers.color)
}
async function createDockerfile (answers) {
  const dockerfileTemplate = await readTemplate('Dockerfile')
  return dockerfileTemplate
    .replace(':NAME', answers.name)
    .replace(':DESCRIPTION', answers.description)
    .replace(':ICON', answers.icon)
    .replace(':COLOR', answers.color)
}
async function createDockerfile ( answers ) { const dockerfileTemplate = await readTemplate ( 'Dockerfile' ) return dockerfileTemplate . replace ( ':NAME' , answers . name ) . replace ( ':DESCRIPTION' , answers . description ) . replace ( ':ICON' , answers . icon ) . replace ( ':COLOR' , answers . color ) }
Creates a Dockerfile contents string, replacing variables in the Dockerfile template
with values passed in by the user from the CLI prompt.

@param {PromptAnswers} answers The CLI prompt answers.
@returns {Promise<string>} The Dockerfile contents.
Creates a Dockerfile contents string replacing variables in the Dockerfile template with values passed in by the user from the CLI prompt .