---
name: codeengine-ts-build-nocmdspecified
title: Why is my build from a Dockerfile failing with a `no command specified` error?
description: I'm building code by using a Dockerfile. However, my build is failing and I receive an error that contains the phrase `no command specified`.
last-updated: 2023-12-11
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/codeengine?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why is my build from a Dockerfile failing with a `no command specified` error?
{: #ts-build-nocmdspecified}
{: troubleshoot}


I'm building code by using a Dockerfile. However, my build is failing and I receive an error that contains the phrase `no command specified`.
{: tsSymptoms}

Your Dockerfile must include an `Entrypoint` field. 
{: tsCauses}

You can resolve this issue by rewriting your Dockerfile to include an `Entrypoint` field. For more information, see [Dockerfile basics](https://cloud.ibm.com/docs/codeengine?topic=codeengine-dockerfile&format=markdown#dockerfile-basics).
{: tsResolve}