Skip to content

Commit d808eb1

Browse files
committed
improve security
1 parent 92c9c1f commit d808eb1

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ podman run -it --rm \
1212
-v "$HOME/.local/state/opencode:/root/.local/state/opencode:Z" \
1313
-v "$HOME/.config/opencode:/root/.config/opencode:Z" \
1414
-v "$HOME/.cache/opencode:/root/.cache/opencode:Z" \
15-
--network host \
16-
--volume /tmp/.X11-unix:/tmp/.X11-unix:ro \
17-
--volume $HOME/.Xauthority:/root/.Xauthority:ro \
18-
--env DISPLAY=$DISPLAY \
15+
--security-opt=no-new-privileges \
16+
--cap-drop=all \
1917
ghcr.io/randommm/opencode
2018
```
2119

@@ -37,3 +35,15 @@ You might also want to add more bind to you podman command, e.g.:
3735
-v $HOME/.cache/pip:/root/.cache/pip \
3836
-v $HOME/.cache/huggingface:/root/.cache/huggingface \
3937
```
38+
39+
## Clipboard support
40+
41+
You will need an OSC52 compliant terminal for clipboard to work, e.g.: kitty, konsole, ghostty.
42+
43+
Another less secure option is to add:
44+
45+
```bash
46+
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
47+
-v $HOME/.Xauthority:/root/.Xauthority:ro \
48+
-e DISPLAY=$DISPLAY
49+
```

0 commit comments

Comments
 (0)