Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 31, 2025

Backport of #12538 to release/13.0

/cc @eerhardt

Customer Impact

We decided to redesign AddNodeApp to better support the other features we added - like package manager run, install, and build commands.

Testing

Added new unit tests. As well added a Node app to the playground that builds a docker container.

Risk

Limited to NodeJs - so no risk outside of the NodeJs integration. For the NodeJs integration, the risk to existing apps is that we obsoleted the old method and redirect callers to the new version.

Regression?

No.

- Obsolete the existing AddNodeApp that takes a file path only
- Introduce a new AddNodeApp that takes a directory path and a file path relative to that directory
- Includes a default Dockerfile for the Node application
- Add Npm package manager support if the directory contains a package.json file
Use multi-stage build.
Set NODE_ENV.
Expose the port.
Use a non-root user.
@github-actions
Copy link
Contributor Author

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12569

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12569"

@eerhardt eerhardt requested a review from davidfowl October 31, 2025 19:10
@davidfowl davidfowl merged commit 9ddf01f into release/13.0 Oct 31, 2025
582 of 585 checks passed
@davidfowl davidfowl deleted the backport/pr-12538-to-release/13.0 branch October 31, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants