> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-wbdocs-1882.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Dockerfile을 지정하고 W&B가 도커 이미지를 빌드하도록 할 수 있나요?

이 기능은 의존성은 안정적이지만 코드베이스가 자주 바뀌는 프로젝트에 적합합니다.

<Warning>
  Dockerfile이 마운트를 사용하도록 작성하세요. 자세한 내용은 [Docker Docs 웹사이트의 Mounts 문서](https://docs.docker.com/build/guide/mounts/)를 참조하세요.
</Warning>

Dockerfile을 구성한 후 다음 세 가지 방법 중 하나로 W\&B에 지정하세요.

* Dockerfile.wandb 사용
* W\&B CLI 사용
* W\&B App 사용

<Tabs>
  <Tab title="Dockerfile.wandb">
    W\&B run의 엔트리포인트와 같은 디렉터리에 `Dockerfile.wandb` 파일을 포함하세요. W\&B는 기본 제공 Dockerfile 대신 이 파일을 사용합니다.
  </Tab>

  <Tab title="W&B CLI">
    작업을 큐에 추가하려면 `wandb launch` 명령어와 함께 `--dockerfile` 플래그를 사용하세요.

    ```bash theme={null}
    wandb launch --dockerfile path/to/Dockerfile
    ```
  </Tab>

  <Tab title="W&B app">
    W\&B App에서 작업을 큐에 추가할 때 **Overrides** 섹션에 Dockerfile 경로를 입력하세요. 키는 `"dockerfile"`로, 값은 Dockerfile 경로로 하는 키-값 쌍으로 입력합니다.

    다음 JSON은 로컬 디렉터리에 있는 Dockerfile을 포함하는 방법을 보여줍니다.

    ```json title="Launch job W&B App" theme={null}
    {
      "args": [],
      "run_config": {
        "lr": 0,
        "batch_size": 0,
        "epochs": 0
      },
      "entrypoint": [],
      "dockerfile": "./Dockerfile"
    }
    ```
  </Tab>
</Tabs>
