aws-amplify / aws-amplify/amplify-hosting

Pre install Node.js 22 for faster build times

Open
#3,991 6 comments 35 reactions 0 assignees View on GitHub
feature-request
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [x] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-hosting/blob/master/FAQ.md).
- [x] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-hosting/issues?q=is%3Aissue+).
- [x] I have removed any sensitive information from my code snippets and submission.

### Amplify Hosting feature

Build settings

### Is your feature request related to a problem? Please describe:

The build time in Amplify is quite slow. I do understand that it is difficult to speed it up although on my local machine it is much faster.

I noticed that nodejs 22 needs to be installed and takes already more than a minute. Could it not be preinstalled in the images to speed up?

```
2025-02-12T12:48:14.586Z [INFO]: # Node version 22 is available for installation
2025-02-12T12:48:14.587Z [INFO]: # Installing Node version 22
2025-02-12T12:49:26.314Z [INFO]: # Now using Node version 22
2025-02-12T12:49:26.428Z [INFO]: # Retrieving cache...
```

### Describe how you'd like this feature to work

I would like node 22 to be preinstalled in the image used by Amplify

Contributor guide

Open the contributing guide

Research direction

Start by locating the Amplify Hosting build-image configuration and the setup that installs Node.js, then compare it with the build log showing Node 22 installation. Done means Node.js 22 is available in the image before builds begin and the installation step is no longer required, while builds continue to succeed.

Written by the indexing model from the issue text.

Assessment

Tech stack
dockerfile, nodejs
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.