Node v18 on Ubuntu 18.04 (Gatsby JS)
Node v18 is currently not supported by Ubuntu 18.04. Please refer to this issue for more details.
If your app was built using Node v18, consider running your application through Docker or Docker Compose.
Listed below is the repository for an example Gatsby JS app that was installed with Node v18.12.1. Gatsby JS currently requires Node v18 or higher to work.
GitHub Repository
Gatsby JS Project (with Node v18 on Ubuntu 18.04)
Tutorial
Install the Gatsby CLI
Install the Gatsby CLI with the following command in your terminal.
Start a Gatsby Project
After you’ve installed the Gatsby CLI, use the following command in a directory of your choice to start a gatsby project.
Add a Dockerfile
Once you’ve created the Gatsby JS project, add the following Dockerfile to the base of the project:
Add a Layerfile
Once you’ve added the Dockerfile, add the following Layerfile to the base of the project:
The last step is to push your code to your repository. If you’ve connected your repository to webapp.io, webapp.io will listen for the new commit and run the instructions in the Layerfile.