diff --git a/src/codeboxapi/docker.py b/src/codeboxapi/docker.py index 35c09ae..67dd073 100644 --- a/src/codeboxapi/docker.py +++ b/src/codeboxapi/docker.py @@ -37,4 +37,9 @@ def __init__( ["docker", "run", "-d", "--rm", "-p", f"{self.port}:8069", image], check=True, ) - self.aclient = httpx.AsyncClient(base_url=f"http://localhost:{self.port}") + self.base_url = f"http://localhost:{self.port}" + self.client = httpx.Client(base_url=self.base_url) + self.aclient = httpx.AsyncClient(base_url=self.base_url) + + # def healthcheck(self) -> str: + # return self.client.get("/").text