From c08000a17c99b6cb03027c6e629e5d023d627cb9 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sun, 9 Aug 2026 00:23:00 -0700 Subject: [PATCH] Add `wslc` as an alternate container runner --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 18bf04c..be5258a 100644 --- a/README.md +++ b/README.md @@ -109,11 +109,29 @@ deno test --lock `main.ts` does not have any dependencies, so `deno.lock` has no effect on the main CLI. -## Docker container +## Container -For additional security, you can run this CLI within a Docker container. +For additional security, you can run this CLI within a container. -1. Build the Docker image using the provided `Dockerfile`: +### Using WSL container + +This section is referring to [`wslc.exe`](https://devblogs.microsoft.com/commandline/wsl-container-is-now-available-for-public-preview/), not running Docker within WSL. + +1. Build the image using the provided `Dockerfile`: + +``` +wslc build -t spt . +``` + +2. Create a new container and run the CLI: + +``` +wslc run -it --rm spt +``` + +### Using Docker + +1. Build the image using the provided `Dockerfile`: ``` docker build -t spt . -- 2.47.3