Skip to main content
Version: Next

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:

Dockerfile

To build the pryzmd binary using Docker, follow these steps:

  1. Open a terminal and clone the repository:

    $ git clone https://github.com/pryzm-finance/pryzm-core.git
    $ cd pryzm-core
  2. Ensure that you are on the correct branch or tag, if applicable:

    $ git checkout v0.9.0
  3. Open a terminal and navigate to the directory containing the Dockerfile.

  4. Build the Docker image using the following command:

    $ docker build -t pryzmd:v0.9.0 .

    This command will build a Docker image with the tag pryzmd:v0.9.0. The build process may take some time, depending on your system and the size of the project.

  5. 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 the pryzmd 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.