[Yandex Cloud documentation](../../../index.md) > [Yandex DataSphere](../../index.md) > [Step-by-step guides](../index.md) > DataSphere Inference > Configuring a node environment

# Configuring the environment for deploying a standalone service

1. [Create a Docker image](../user-images.md) in the project and install the required dependencies in the build script. Build the image.

1. [Create a secret](../data/secrets.md#create) with a password for your container registry.

   If you are using a Yandex Container Registry, get authenticated using the authorized key for the [service account](../../../iam/concepts/users/service-accounts.md) that has the [required roles](../../../container-registry/security/index.md) and is specified in the [project settings](../projects/update.md):

   1. If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

   1. Get authorized keys for your service account and save them to the `key.json` file:

      ```bash
      yc iam key create --service-account-name default-sa -o key.json
      ```

      Result:

      ```text
      id: aje8a87g4eaj********
      service_account_id: aje3932acde3********
      created_at: "2019-05-31T16:56:47Z"
      key_algorithm: RSA_2048
      ```

   1. Run this command:

      ```bash
      cat key.json | docker login \
        --username json_key \
        --password-stdin \
        cr.yandex
      ```

      Where:
      * `cat key.json`: Command to write the contents of the key file to the output stream.
      * `--password-stdin`: Flag that enables reading the password from the input stream.

      Result:

      ```text
      Login Succeeded
      ```
   {% note info %}
   
   Authorized keys do not expire, but you can always get new authorized keys and get authenticated again if something goes wrong.
   
   {% endnote %}

1. [Upload](../../../container-registry/operations/docker-image/docker-image-push.md) your Docker image to the container registry. To do this, run this code in a cell:

   ```text
   #!:docker-publish <image_name>:<image_tag> cr.yandex/<image_path>:<tag>
   ```

   * `<image_name>`: Name of the image in DataSphere.
   * `<image_tag>`: Tag of the image in DataSphere.
   * `<image_path>`: Path to the Container Registry image in `cr.yandex/<registry_ID>/<image_name>` format.
   * `<tag>`: Image [tag](../../../container-registry/concepts/docker-image.md#version).

   While uploading, enter the username and select the secret containing the password. For authorization in Container Registry, provide the `json_key` token type as username and the secret as password.

1. In the [node](../../concepts/deploy/index.md#node) creation form, specify the path to the image in this format: `cr.yandex/<registry_address>:<tag>`.