Skip to content

Commit 8a1b789

Browse files
committed
docs: update Docker commands for consistency and simplification
1 parent 2e1c2a9 commit 8a1b789

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/supported_protocols/asyncapi/web-sockets.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ const cwd = process.cwd();
187187
188188
execSync(
189189
`docker run --rm --network host \
190-
-v "${cwd}/specmatic.yaml:/usr/src/app/specmatic.yaml" \
191-
-v "${cwd}/specification:/usr/src/app/specification" \
190+
-v "${cwd}:/usr/src/app" \
192191
specmatic/enterprise test \
193192
--overlay=specification/overlay.yaml`,
194193
{ stdio: "inherit" }
@@ -219,8 +218,7 @@ You can also run the application manually and use the docker command as follows:
219218

220219
```bash
221220
docker run --rm --network host \
222-
-v "${cwd}/specmatic.yaml:/usr/src/app/specmatic.yaml" \
223-
-v "${cwd}/specification:/usr/src/app/specification" \
221+
-v "$(pwd):/usr/src/app" \
224222
specmatic/enterprise test \
225223
--overlay=specification/overlay.yaml
226224
```

0 commit comments

Comments
 (0)