Skip to content

Conversation

cky008
Copy link

@cky008 cky008 commented Oct 7, 2025

When using the current command, you will encounter the following error:

unknown flag: --platform
See 'docker buildx --help'.

This change will mitigate this issue

Reference: Deploying to ECR

Another change is due to following error:

[+] Building 2.0s (2/2) FINISHED                                                                                                                                                                                                              docker-container:cranky_black
 => [internal] booting buildkit                                                                                                                                                                                                                                        1.6s
 => => pulling image moby/buildkit:buildx-stable-1                                                                                                                                                                                                                     0.9s
 => => creating container buildx_buildkit_cranky_black0                                                                                                                                                                                                                0.7s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                   0.0s
 => => transferring dockerfile: 480B                                                                                                                                                                                                                                   0.0s
Dockerfile:9
--------------------
   7 |     RUN npm install
   8 |     
   9 | >>> npm install typescript -g
  10 |     
  11 |     COPY . .
--------------------
ERROR: failed to solve: dockerfile parse error on line 9: unknown instruction: npm

Amazon Bedrock AgentCore Samples Pull Request

Important

  1. We strictly follow a issue-first approach, please first open an issue relating to this Pull Request.
  2. Once this Pull Request is ready for review please attach review ready label to it. Only PRs with review ready will be reviewed.

Issue number:

Concise description of the PR

Changes to given cli command, because there is an issue with current cli command and Dockerfile

User experience

Please share what the user experience looks like before and after this change
Before:

image

After:
image

Another change:
Before:
image
After:
image

Checklist

If your change doesn't seem to apply, please leave them unchecked.

  • I have reviewed the contributing guidelines
  • Add your name to CONTRIBUTORS.md
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • [] Are you uploading a dataset?
  • Have you documented Introduction, Architecture Diagram, Prerequisites, Usage, Sample Prompts, and Clean Up steps in your example README?
  • I agree to resolve any issues created for this example in the future.
  • I have performed a self-review of this change
  • Changes have been tested
  • Changes are documented

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

cky008 added 2 commits October 7, 2025 14:18
When using the current command, you will encounter the following error:

```zsh
unknown flag: --platform
See 'docker buildx --help'.
```

Reference: [Deploying to ECR](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/getting-started-custom.html)


Signed-off-by: Kaiyu Chen <[email protected]>
Before fix will get error:
```zsh
[+] Building 2.0s (2/2) FINISHED                                                                                                                                                                                                              docker-container:cranky_black
 => [internal] booting buildkit                                                                                                                                                                                                                                        1.6s
 => => pulling image moby/buildkit:buildx-stable-1                                                                                                                                                                                                                     0.9s
 => => creating container buildx_buildkit_cranky_black0                                                                                                                                                                                                                0.7s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                   0.0s
 => => transferring dockerfile: 480B                                                                                                                                                                                                                                   0.0s
Dockerfile:9
--------------------
   7 |     RUN npm install
   8 |     
   9 | >>> npm install typescript -g
  10 |     
  11 |     COPY . .
--------------------
ERROR: failed to solve: dockerfile parse error on line 9: unknown instruction: npm
```

Signed-off-by: Kaiyu Chen <[email protected]>
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added 01-tutorials 01-tutorials 01-AgentCore-runtime 01-tutorials/01-AgentCore-runtime labels Oct 7, 2025
@cky008 cky008 mentioned this pull request Oct 7, 2025
7 tasks
@cky008
Copy link
Author

cky008 commented Oct 7, 2025

fix #444

@cky008
Copy link
Author

cky008 commented Oct 15, 2025

ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

01-AgentCore-runtime 01-tutorials/01-AgentCore-runtime 01-tutorials 01-tutorials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant