File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ ```
You can’t perform that action at this time.
0 commit comments