# Install Node to Python image

### 1. Create a node installation bash file

In your git repository, create a new file called `install_node.sh` with the following content

```
install_node.sh
```

```bash
#!/bin/bash
set -e

# Update package lists and install curl
apt-get update && apt-get install -y curl

# Install Node.js and npm (Node.js v20)
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs

# Upgrade npm to the latest version
npm install -g npm@latest

# Clean up to reduce image size
apt-get clean && rm -rf /var/lib/apt/lists/*

# Display installed versions
node --version
npm --version
```

### 2. Edit build command on seenode platform

For instance if you need to install node and then python packages from requirements.txt file, use this build command.

```
bash install_node.sh && pip install -r requirements.txt
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://seenode.gitbook.io/docs/deploying/install-node-to-python-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
