Skip to content

Commit 7701556

Browse files
committed
fix port mapping and --platform error
1 parent b721c8b commit 7701556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.vscode/tasks.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"label": "Build Documentation (Incremental)",
88
"type": "shell",
9-
"command": "docker run -v \"./.git:/app/.git\" -v \"./docs:/app/docs\" -v \"./.artifacts:/app/.artifacts\" ghcr.io/elastic/docs-builder:edge",
9+
"command": "docker run -v \"./.git:/app/.git\" -v \"./docs:/app/docs\" -v \"./.artifacts:/app/.artifacts\" --platform linux/amd64 ghcr.io/elastic/docs-builder:edge",
1010
"problemMatcher": [],
1111
"group": {
1212
"kind": "build",
@@ -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\" -p 8080:8080 ghcr.io/elastic/docs-builder:edge serve",
19+
"command": "docker run -v \"./.git:/app/.git\" -v \"./docs:/app/docs\" -v \"./.artifacts:/app/.artifacts\" --platform linux/amd64 -p 8080:8080 ghcr.io/elastic/docs-builder:edge serve",
2020
"problemMatcher": [],
2121
"group": {
2222
"kind": "build",
@@ -26,7 +26,7 @@
2626
{
2727
"label": "Build Documentation (Full (--force))",
2828
"type": "shell",
29-
"command": "docker run -v \"./.git:/app/.git\" -v \"./docs:/app/docs\" -v \"./.artifacts:/app/.artifacts\" ghcr.io/elastic/docs-builder:edge --force",
29+
"command": "docker run -v \"./.git:/app/.git\" -v \"./docs:/app/docs\" -v \"./.artifacts:/app/.artifacts\" --platform linux/amd64 ghcr.io/elastic/docs-builder:edge --force",
3030
"problemMatcher": [],
3131
"group": {
3232
"kind": "build",

0 commit comments

Comments
 (0)