CodeAnt AI home pagelight logodark logo
  • Dashboard
  • Dashboard
  • Documentation
  • Demo Call with CEO
  • Blog
  • Slack
  • Get Started
    • CodeAnt AI
    • Setup
    • Control Center
    • Pull Request Review
    • IDE
    • Compliance
    • Anti-Patterns
    • Code Governance
    • Infrastructure Security Database
    • Application Security Database
      • Apex
      • Bash
      • C
      • Clojure
      • Cpp
      • Csharp
      • Dockerfile
      • Elixir
      • Fingerprints
      • Generic
        • Bicep
        • Ci
        • Dockerfile
        • Dockerfile
          • Best practice
          • Correctness
        • Html-templates
        • Hugo
        • Nginx
        • Secrets
        • Unicode
        • Visualforce
      • Go
      • Html
      • Java
      • Javascript
      • Json
      • Kotlin
      • Ocaml
      • Php
      • Problem-based-packs
      • Python
      • Ruby
      • Rust
      • Scala
      • Solidity
      • Swift
      • Terraform
      • Typescript
      • Yaml
    Dockerfile

    Correctness

    alias-must-be-unique

    Image aliases must have a unique name, and ‘REF′isusedtwice.Useanothernamefor′REF' is used twice. Use another name for 'REF′isusedtwice.Useanothernamefor′REF’.

    multiple-cmd-instructions

    Multiple CMD instructions were found. Only the last one will take effect.

    copy-from-own-alias

    COPY instructions cannot copy from its own alias. The ‘REF′aliasisusedbeforeswitchingtoanewimage.Ifyoumeanttoswitchtoanewimage,includeanew′FROM′statement.Otherwise,removethe′−−from=REF' alias is used before switching to a new image. If you meant to switch to a new image, include a new 'FROM' statement. Otherwise, remove the '--from=REF′aliasisusedbeforeswitchingtoanewimage.Ifyoumeanttoswitchtoanewimage,includeanew′FROM′statement.Otherwise,removethe′−−from=REF’ from the COPY statement.

    Best practiceSecurity
    twitterlinkedin
    Powered by Mintlify
    Assistant
    Responses are generated using AI and may contain mistakes.