Building pryzmd
Using Docker
The pryzmd
binary can also be built using a Dockerfile, which provides a reproducible and isolated build environment. This guide outlines the steps required to build the pryzmd
binary using the provided Dockerfile.
Prerequisites
Before proceeding with the build process, ensure that the following prerequisites are met:
- Docker: Install Docker on your system.
Dockerfile
To build the pryzmd
binary using Docker, follow these steps:
-
Open a terminal and clone the repository:
$ git clone https://github.com/pryzm-finance/pryzm-core.git
$ cd pryzm-core -
Ensure that you are on the correct branch or tag, if applicable:
$ git checkout 0.18.0
-
Open a terminal and navigate to the directory containing the Dockerfile.
-
Build the Docker image using the following command:
$ docker build -t pryzmd:0.18.0 .
This command will build a Docker image with the tag
pryzmd:0.18.0
. The build process may take some time, depending on your system and the size of the project. -
After the image is built successfully, you can run a container using the built image:
$ docker run -it pryzmd
This command will start a container from the
pryzmd
image and automatically execute thepryzmd
binary inside the container.Note: If you need to pass any command-line arguments or bind-mount directories to the container, refer to the Docker documentation for the appropriate command syntax.