Repository: permitio/cedar-agent (language: rust)

Issue:
Could not access rapidoc or swagger ...
Cant load the swagger or rapidoc after running  using docker as per the README instructions. 
docker run permitio/cedar-agent
OS: Mac M1 Pro Ventura


Discussion / hints:
Hi @santhosh34 :)

Is this the exact command you ran?
```
docker run permitio/cedar-agent
```

It looks like there are a couple issues here.

First the port needs to be exposed from the docker container, this should be the command:
```
docker run -it -p 8180:8180 permitio/cedar-agent
```

But it looks like there is another issue here. We'll investigate and get back to you.
cc @omer9564 

Fix patch:
diff --git a/Dockerfile b/Dockerfile
index bc1aae0..cc0f2bd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,5 +15,7 @@ WORKDIR /agent
 
 COPY --from=build /agent/target/release/cedar-agent /agent/cedar-agent
 
+ENV ADDR=0.0.0.0
+
 ENTRYPOINT ["/agent/cedar-agent"]
 
diff --git a/README.md b/README.md
index b1aabb8..5750394 100644
--- a/README.md
+++ b/README.md
@@ -135,7 +135,7 @@ To check the arguments you can pass to the binary, run:
 To execute the Cedar Agent docker image, use the following command:
 
 ```shell
-docker run permitio/cedar-agent
+docker run -p 8180:8180 permitio/cedar-agent
 ```
 
 ### Test


Test patch: