opticdev / optic

OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.
https://useoptic.com
MIT License
1.36k stars 83 forks source link

chore(docker): run optic as unprivileged user #2756

Closed notnmeyer closed 8 months ago

notnmeyer commented 8 months ago

🍗 Description

What does this PR do? Anything folks should know?

📚 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable.

👹 QA

How can other humans verify that this PR is correct? kicked the tires a bit with bookstore-example and everything seemed ok,

docker run --rm -it --volume=$HOME/code/bookstore-example:/repo --workdir /repo localhost:5000/useoptic/optic:local capture openapi.yml --update interactive