Skip to content

Instantly share code, notes, and snippets.

@caarmen
Last active April 6, 2026 14:09
Show Gist options
  • Select an option

  • Save caarmen/9e45c0f71c037c91e6127e7e2ef4fad8 to your computer and use it in GitHub Desktop.

Select an option

Save caarmen/9e45c0f71c037c91e6127e7e2ef4fad8 to your computer and use it in GitHub Desktop.
How to run a docker container like codex, and share your whole project EXCEPT for `.env` and `node_modules` :
docker run --rm -it -v $(pwd):/opt/myproj -v /dev/null:/opt/myproj/.env -v /opt/myproj/node_modules --entrypoint bash codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment