title: Gitlab CICD pipeline with `hashicorp/terraform:full` image errors with `terraform: command not found`
body: <p>I have a Gitlab pipeline to deploy AWS infrastructure using Terraform. When I use the <code>hashicorp/terraform:light</code> image everything works as expected. However, when I use the <code>hashicorp/terraform:full</code>, it cannot find <code>terraform</code> apparently.</p>
  
  <p>Below is the <code>.gitlab-ci.yml</code> file I have:</p>
  
  <pre><code>image:
    name: hashicorp/terraform:light
    entrypoint:
      - '/usr/bin/env'
      - 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
  
  before_script:
    - rm -rf .terraform
    - export AWS_ACCESS_KEY
    - export AWS_SECRET_KEY
    - terraform init
  
  stages:
    - validate
    - plan
    - apply
  
  validate:
    stage: validate
    script:
      - terraform validate
  
  plan:
    stage: plan
    script:
      - terraform plan -out "planfile"
    dependencies:
      - validate
    artifacts:
      paths:
        - planfile
  
  apply:
    stage: apply
    script:
      - terraform apply -input=false "planfile"
    dependencies:
      - plan
    when: manual
  </code></pre>
  
  <p>When using <code>hashicorp/terraform:light</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/9QWJV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9QWJV.png" alt="enter image description here"></a></p>
  
  <p>When using <code>hashicorp/terraform:full</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/pWJTi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pWJTi.png" alt="enter image description here"></a></p>
  
  <p>So with <code>hashicorp/terraform:full</code> I get a <code>command not found</code> error even though nothhing else changed.</p>
  
  <p>How can I make this work with the <code>hashicorp/terraform:full</code> Docker image?</p>