summaryrefslogtreecommitdiff
path: root/vendor/github.com/playwright-community/playwright-go/Dockerfile.example
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-31 16:09:12 -0600
committermo khan <mo@mokhan.ca>2025-07-31 16:09:12 -0600
commit311603d0c0b04d451e9fb8e5e8335dca8425e2c4 (patch)
treef38db8e10c4b55aef21c96c30fc71278c6e3d5c6 /vendor/github.com/playwright-community/playwright-go/Dockerfile.example
parentebb003ef2beaeee61104d6b88a342c5c9fa73b51 (diff)
Connect to postgresql
Diffstat (limited to 'vendor/github.com/playwright-community/playwright-go/Dockerfile.example')
-rw-r--r--vendor/github.com/playwright-community/playwright-go/Dockerfile.example25
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/github.com/playwright-community/playwright-go/Dockerfile.example b/vendor/github.com/playwright-community/playwright-go/Dockerfile.example
deleted file mode 100644
index 3077cf3..0000000
--- a/vendor/github.com/playwright-community/playwright-go/Dockerfile.example
+++ /dev/null
@@ -1,25 +0,0 @@
-# Stage 1: Modules caching
-FROM golang:1.22 as modules
-COPY go.mod go.sum /modules/
-WORKDIR /modules
-RUN go mod download
-
-# Stage 2: Build
-FROM golang:1.22 as builder
-COPY --from=modules /go/pkg /go/pkg
-COPY . /workdir
-WORKDIR /workdir
-# Install playwright cli with right version for later use
-RUN PWGO_VER=$(grep -oE "playwright-go v\S+" /workdir/go.mod | sed 's/playwright-go //g') \
- && go install github.com/playwright-community/playwright-go/cmd/playwright@${PWGO_VER}
-# Build your app
-RUN GOOS=linux GOARCH=amd64 go build -o /bin/myapp
-
-# Stage 3: Final
-FROM ubuntu:noble
-COPY --from=builder /go/bin/playwright /bin/myapp /
-RUN apt-get update && apt-get install -y ca-certificates tzdata \
- # Install dependencies and all browsers (or specify one)
- && /playwright install --with-deps \
- && rm -rf /var/lib/apt/lists/*
-CMD ["/myapp"] \ No newline at end of file