-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from ZakisM/feat/use-golang-playwright
feat: use golang for playwright
- Loading branch information
Showing
13 changed files
with
242 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:latest as builder | ||
WORKDIR /app | ||
COPY go.mod go.sum . | ||
RUN go mod download | ||
RUN go run github.com/playwright-community/playwright-go/cmd/playwright@latest install webkit | ||
COPY *.go . | ||
COPY playwright_helper ./playwright_helper | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/playwright-bridge-go | ||
|
||
FROM mcr.microsoft.com/playwright:v1.41.1-jammy | ||
COPY --from=builder /app/playwright-bridge-go ./app/ | ||
COPY --from=builder ../root/.cache/ms-playwright-go ../root/.cache/ms-playwright-go | ||
ENTRYPOINT ["/app/playwright-bridge-go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module main | ||
|
||
go 1.22.0 | ||
|
||
require ( | ||
github.com/labstack/echo/v4 v4.11.4 | ||
github.com/playwright-community/playwright-go v0.4101.1 | ||
) | ||
|
||
require ( | ||
github.com/deckarep/golang-set/v2 v2.6.0 // indirect | ||
github.com/go-jose/go-jose/v3 v3.0.1 // indirect | ||
github.com/go-stack/stack v1.8.1 // indirect | ||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect | ||
github.com/labstack/gommon v0.4.2 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
github.com/valyala/fasttemplate v1.2.2 // indirect | ||
go.uber.org/multierr v1.11.0 // indirect | ||
golang.org/x/crypto v0.17.0 // indirect | ||
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect | ||
golang.org/x/net v0.19.0 // indirect | ||
golang.org/x/sys v0.15.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
golang.org/x/time v0.5.0 // indirect | ||
) |
Oops, something went wrong.