Skip to content

Commit b721c8b

Browse files
authored
Update docker port from --expose to -p for live previews (#3)
1 parent 8572c49 commit b721c8b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{
1717
"label": "Serve Documentation",
1818
"type": "shell",
19-
"command": "docker run -v \"./.git:/app/.git\" -v \"./docs:/app/docs\" -v \"./.artifacts:/app/.artifacts\" --expose 8080 ghcr.io/elastic/docs-builder:edge serve",
19+
"command": "docker run -v \"./.git:/app/.git\" -v \"./docs:/app/docs\" -v \"./.artifacts:/app/.artifacts\" -p 8080:8080 ghcr.io/elastic/docs-builder:edge serve",
2020
"problemMatcher": [],
2121
"group": {
2222
"kind": "build",

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@ docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.ar
3838
### Live mode
3939

4040
```bash
41-
docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.artifacts" \
42-
--expose 8080 ghcr.io/elastic/docs-builder:edge serve
41+
docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.artifacts" -p 8080:8080 ghcr.io/elastic/docs-builder:edge serve
4342
```

0 commit comments

Comments
 (0)