Here's the complete code:
```python
import os
import docker

class Soymilk:
    def __init__(self):
        self.filepaths = {
            'DOCKERFILE_PATH': os.environ.get('DOCKERFILE_PATH', ''),
            'REQUIREMENTS_PATH': os.environ.get('REQUIREMENTS_PATH', ''),
            'SOURCE_REPO_PATH': os.environ.get('SOURCE_REPO_PATH', ''),
        }

        self.registry = os.environ.get('REGISTRY', '')
        self.login_needed = bool(os.environ.get('LOGIN_NEEDED', ''))
        self.docker_host = os.environ.get('DOCKER_HOST', 'unix:///var/run/docker.sock')
        self.tls_verify = bool(os.environ.get('TLS_VERIFY', ''))
        self.tls_ca_cert = os.environ.get('TLS_CA_CERT', '')
        self.tls_client_cert = os.environ.get('TLS_CLIENT_CERT', '')
        self.tls_client_key = os.environ.get('TLS_CLIENT_KEY', '')
        self.ssh_key_path = os.environ.get('SSH_KEY_PATH', '')
        self.ssh_username = os.environ.get('SSH_USERNAME', '')
        self.ssh_password = os.environ.get('SSH_PASSWORD', '')
        self.milk_uuid = os.environ.get('MILK_UUID', None)
        self.tag = os.environ.get('TAG', '')

        self.client = self._get_docker_client()

    def _get_docker_client(self):
        kwargs = {
            'base_url': self.docker_host,
            'tls': self.tls_verify,
            'tls_ca_cert': self.tls_ca_cert,
            'tls_client_cert': self.tls_client_cert,
            'tls_client_key': self.tls_client_key,
        }
        if self.ssh_key_path:
            kwargs['ssh_config'] = docker.types.SSHConfig(
                key_file=self.ssh_key_path,
                username=self.ssh_username,
                password=self.ssh_password,
            )
        return docker.DockerClient(**kwargs)

    def build_container(self):
        tag = f'{self.registry}:{self.milk_uuid}'
        self.client.images.build(
            path=self.filepaths['SOURCE_REPO_PATH'],
            dockerfile=self.filepaths['DOCKERFILE_PATH'],
            tag=tag,
            rm=True,
            buildargs={
                'REQUIREMENTS_PATH': self.filepaths['REQUIREMENTS_PATH']
            }
        )
        return tag

    def push_container(self, tag, repository):
        image = self.client.images.get(tag)

        if self.login_needed:
            if self.tls_verify:
                assert self.tls_ca_cert, 'TLS_CA_CERT must be set for Docker registry login'
                assert self.tls_client_cert, 'TLS_CLIENT_CERT must be set for Docker registry login'
                assert self.tls_client_key, 'TLS_CLIENT_KEY must be set for Docker registry login'
                try:
                    self.client.login(registry=self.registry,
                                       ssl_version=ssl.PROTOCOL_TLSv1_2,
                                       tls=True,
                                       tls_ca_cert=self.tls_ca_cert,
                                       tls_client_cert=self.tls_client_cert,
                                       tls_client_key=self.tls_client_key)
                except docker.errors.APIError as e:
                    return {'status': 'error', 'message': f'Login to registry failed: {str(e)}'}
            else:
                try:
                    self.client.login(registry=self.registry)
                except docker.errors.APIError as e:
                    return {'status': 'error', 'message': f'Login to registry failed: {str(e)}'}
        
        try:
            self.client.images.push(repository=repository, tag=tag)
            return {'status': 'success'}
        except docker.errors.APIError as e:
            return {'status': 'error', 'message': str(e)}

    def run_container(self,
```
전체 코드는 다음과 같습니다:'''pythonimport osimport docker클래스 두유:    def __init__(self):        self.filepaths = {            'DOCKERFILE_PATH': os.environ.get('DOCKERFILE_PATH', ''),            'REQUIREMENTS_PATH': os.environ.get('REQUIREMENTS_PATH', ''),            'SOURCE_REPO_PATH': os.environ.get('SOURCE_REPO_PATH', ''),        }        self.registry = os.environ.get('REGISTRY', '')        self.login_needed = bool(os.environ.get('LOGIN_NEEDED', ''))        self.docker_host = os.environ.get('DOCKER_HOST', 'unix:///var/run/docker.sock')        self.tls_verify = bool(os.environ.get('TLS_VERIFY', ''))        self.tls_ca_cert = os.environ.get('TLS_CA_CERT', '')        self.tls_client_cert = os.environ.get('TLS_CLIENT_CERT', '')        self.tls_client_key = os.environ.get('TLS_CLIENT_KEY', '')        self.ssh_key_path = os.environ.get('SSH_KEY_PATH', '')        self.ssh_username = os.environ.get('SSH_USERNAME', '')        self.ssh_password = os.environ.get('SSH_PASSWORD', '')        self.milk_uuid = os.environ.get('MILK_UUID', None)        self.tag = os.environ.get('TAG', '')        self.client = self._get_docker_client()    def _get_docker_client(self):        kwargs = {            'base_url': self.docker_host,            'tls': self.tls_verify,            'tls_ca_cert': self.tls_ca_cert,            'tls_client_cert': self.tls_client_cert,            'tls_client_key': self.tls_client_key,        }        if self.ssh_key_path:            kwargs['ssh_config'] = docker.types.SSHConfig(                key_file=self.ssh_key_path,                사용자 이름=self.ssh_username,                password=self.ssh_password,            )        반환 docker.DockerClient(**kwargs)    def build_container(self):        tag = f'{self.registry}:{self.milk_uuid}'        self.client.images.build(            path=self.filepaths['SOURCE_REPO_PATH'],            dockerfile=self.filepaths['DOCKERFILE_PATH'],            tag=태그,            rm=True,            buildargs={                'REQUIREMENTS_PATH': self.filepaths['REQUIREMENTS_PATH']            }        )        반환 태그    def push_container(self, tag, repository):        image = self.client.images.get(tag)        if self.login_needed:            if self.tls_verify:                assert self.tls_ca_cert, '도커 레지스트리 로그인을 위해 TLS_CA_CERT를 설정해야 합니다'                assert self.tls_client_cert, '도커 레지스트리 로그인을 위해 TLS_CLIENT_CERT를 설정해야 합니다'                assert self.tls_client_key, '도커 레지스트리 로그인을 위해 TLS_CLIENT_KEY를 설정해야 합니다'                try:                    self.client.login(registry=self.registry,                                       ssl_version=ssl.PROTOCOL_TLSv1_2,                                       tls=True,                                       tls_ca_cert=self.tls_ca_cert,                                       tls_client_cert=self.tls_client_cert,                                       tls_client_key=self.tls_client_key)                docker.errors.APIError를 e로 제외합니다:                    반환 {'status': 'error', 'message': f'레지스트리에 로그인하지 못했습니다: {str(e)}'}            else:                try:                    self.client.login(registry=self.registry)                docker.errors.APIError를 e로 제외합니다:                    return {'status': 'error', 'message': f'레지스트리에 로그인하지 못했습니다: {str(e)}'}                try:            self.client.images.push(리포지토리=리포지토리, 태그=태그)            return {'status': 'success'}        docker.errors.APIError를 e로 제외합니다:            return {'status': 'error', 'message': str(e)}    def run_container(self,```