Docker image for running a Massa node with precompiled binaries.
This Docker image builds a containerized Massa blockchain node based on Ubuntu 24.04 with precompiled binaries from the official Massa releases.
- Base Image:
ubuntu:24.04 - Massa Version: MAIN.4.1
- Node Binary: Precompiled from GitHub releases
The build context must include the following files/directories:
.
├── Dockerfile
├── start_massa.sh
├── massa-node/
│ └── config/ # Massa node configuration files
└── massa-client/ # (Optional) Massa client files
docker build -t massa-node:latest .docker run -d \
--name massa-node \
-p 31244:31244 \
-p 31245:31245 \
-p 33034:33034 \
-p 3001:3001 \
massa-node:latest| Port | Purpose |
|---|---|
| 31244 | P2P protocol port |
| 31245 | Secondary P2P port |
| 33034 | API/RPC endpoint |
| 3001 | Application port |
Place your Massa node configuration in massa-node/config/ before building. This directory is copied into the container at /massa/massa-node/config/.
Modify start_massa.sh to change the node password if needed.
Node logs are written to /massa/massa-node/logs.txt inside the container. Access them with:
docker logs -f massa-nodeInstalled in the image:
curl- For downloading binarieslibssl-dev- SSL/TLS libraries for cryptographic operations
Unused dependencies are removed to minimize image size.
The container automatically starts the Massa node using start_massa.sh:
- Navigates to the
massa-nodedirectory - Launches the Massa node binary with the specified key
- Logs output to
logs.txt - Keeps the container running indefinitely