# Why am I receiving an "invalid dockerfile\_path" error when building my Docker app on App Platform? When building your Docker app on App Platform, an `Invalid dockerfile_path, no such file exists in the git repository` error occurs when your `dockerfile_path` is not correctly defined in your [Application Specification (app spec)](https://docs.digitalocean.com/products/app-platform/reference/app-spec/index.html.md) file. By default, the `dockerfile_path` value is set to the file `Dockerfile` in the root of the repository: ```yaml name: sample-dockerfile services: - name: web git: repo_clone_url: https://github.com/digitalocean/sample-dockerfile.git branch: main dockerfile_path: Dockerfile ``` If your Dockerfile is located in a specific directory in your repository, update your app spec to use your Dockerfile’s exact location as the `dockerfile_path` value. To update your app spec, in the [DigitalOcean Control Panel](https://cloud.digitalocean.com/apps), select the app you want to update its app spec for, then click the **Settings** tab. In the **App Spec** section, click **Edit**, then [update the app spec](https://docs.digitalocean.com/products/app-platform/how-to/update-app-spec/index.html.md) in the control panel: ```yaml name: sample-dockerfile services: - name: web git: repo_clone_url: https://github.com/digitalocean/sample-dockerfile.git branch: main dockerfile_path: /Dockerfile ``` After you’ve added the correct path to your `dockerfile_path` parameter, click **Save** to update the app spec which automatically redeploys your Docker app. ## Related Topics [Why am I receiving a "user does not exist" error when building my Docker app on App Platform?](https://docs.digitalocean.com/support/why-am-i-receiving-a-user-does-not-exist-error-when-building-my-docker-app-on-app-platform/index.html.md): In your Dockerfile, the `USER` instruction needs to be after the `FROM` and `WORKDIR` instructions. [How do I fix the error "Record is managed by an App on this account, and cannot be deleted"?](https://docs.digitalocean.com/support/how-do-i-fix-the-error-record-is-managed-by-an-app-on-this-account-and-cannot-be-deleted/index.html.md): Use the app’s Settings tab to remove domains associated with App Platform apps. [Why do I get the error “JavaScript heap out of memory” during deployment?](https://docs.digitalocean.com/support/why-do-i-get-the-error-javascript-heap-out-of-memory-during-deployment/index.html.md): Increase the heap memory by setting the environment variable NODE\_OPTIONS=–max-old-space-size=4096.