Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit acba711

Browse files
feat: add instruction guide (#6)
1 parent 8ea6e39 commit acba711

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
11
# Docker base image for [playwright-go](https://github.com/playwright-community/playwright-go)
2+
3+
# Instruction
4+
5+
To use this base image, please specify `DriverDirectory` to `/root/.cache`.
6+
Also, we are recommend to specify `SkipInstallBrowsers` to `true`.
7+
8+
```go
9+
pw, err := playwright.Run(&playwright.RunOptions{
10+
DriverDirectory: "/root/.cache",
11+
SkipInstallBrowsers: true,
12+
})
13+
if err != nil {
14+
return nil, fmt.Errorf("failed to start playwright: %w", err)
15+
}
16+
```

0 commit comments

Comments
 (0)