]> git.ardis.lu - seed-phrase-transposer/commit
Add `--read-only` flag to `docker run`
authorArdis Lu <ardisglu@gmail.com>
Mon, 9 Jun 2025 02:32:03 +0000 (19:32 -0700)
committerArdis Lu <ardisglu@gmail.com>
Mon, 9 Jun 2025 02:32:03 +0000 (19:32 -0700)
commitc71df72c824d54df29e3183ac44fa1f1cf2606ed
tree9976db3a9c01945a2623ff1cf856738b788d53f2
parent4e99fd7270f76a9730916181b63842752bfccf5b
Add `--read-only` flag to `docker run`

This flag further enhances security, however without further changes this flag will generate warnings because the `deno` executable needs to write twice: (1) to generate a dependency analysis cache, and (2) to generate a code cache.

(1) is resolved by adding a command to run `deno` once in the `Dockerfile`, to instantiate the analysis cache during image build.

(2) is resolved by adding `--no-code-cache` to the `deno run` command, which will avoid generating the code cache.
Dockerfile
README.md
This page took 0.036106 seconds and 4 git commands to generate.