You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update version to 2.2.0, add --public option for Docker accessibility, and enhance Docker build process for multi-architecture support. Update README and Dockerfile to reflect changes.
Copy file name to clipboardExpand all lines: npx/docker/README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The project includes a Docker image that can be used as an alternative to `npx r
4
4
5
5
### Building the Docker Image
6
6
7
-
Run the build script:
7
+
Run the build script for **local testing**:
8
8
9
9
```bash
10
10
npx/docker/build
@@ -14,6 +14,9 @@ The script will:
14
14
- Build the Docker image with both version and `latest` tags
15
15
- Read the version from `npx/package.json`
16
16
- Display the created tags
17
+
- Build for your current platform (useful for local testing)
18
+
19
+
**Note:** The build script is for local testing only. When publishing, the publish script will rebuild the image anyway, so you don't need to run build first.
17
20
18
21
The Dockerfile installs Node.js v23.11.0 (which includes npx) and the `run-claude-artifact` npm package globally.
19
22
@@ -26,11 +29,14 @@ npx/docker/publish
26
29
```
27
30
28
31
The script will:
29
-
- Check if the image exists (builds it if not found)
32
+
-**Always rebuild** the image using Docker buildx (even if a local image exists)
33
+
- Build for both `linux/amd64` and `linux/arm64` architectures
30
34
- Verify Docker Hub login
31
35
- Push both version and `latest` tags to Docker Hub
32
36
33
-
**Note:** Make sure to run `docker login` before publishing.
37
+
**Note:** The publish script always rebuilds the image to ensure both architectures are built and pushed. Running the build script first is not necessary and won't speed up the publishing process.
38
+
39
+
**Prerequisites:** Make sure to run `docker login` before publishing.
34
40
35
41
### Using the Docker Image
36
42
@@ -55,4 +61,4 @@ For the `run` subcommand, use `-p 5173:5173` to map the Vite dev server port to
55
61
56
62
The tool clones the template repository to a temporary directory inside the container, so git operations happen entirely within the container and don't require host filesystem access.
57
63
58
-
The container automatically passes `--no-open`to prevent browser opening attempts inside the container. When the server starts, you'll see a message with the URL to open in your browser.
64
+
The container automatically passes `--no-open --public` flags to prevent browser opening attempts and bind to 0.0.0.0 (making it accessible from outside the container). When the server starts, you'll see a message with the URL to open in your browser.
0 commit comments