From 3f51cf48e8431cff78e40021cf090b08462f1dbc Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Tue, 3 Dec 2024 10:01:20 -0400 Subject: [PATCH] install play wrigth --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a0bb1d..50e137d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,12 @@ RUN apt update && apt install git WORKDIR /app COPY . . RUN go mod tidy +RUN go run github.com/playwright-community/playwright-go/cmd/playwright@v0.4802.0 install --with-deps # https://stackoverflow.com/questions/70369368/check-architecture-in-dockerfile-to-get-amd-arm RUN go build -o bin/crawler \ -ldflags "-X main.Shortsha=${SHORTSHA} \ -X main.Version=${version} \ -X main.Aarch=${TARGETARCH}" ./cmd/crawler/main.go - -FROM mcr.microsoft.com/playwright -#FROM alpine AS runner -COPY --from=builder /app/bin/crawler /usr/bin/ -WORKDIR /app +COPY /app/bin/crawler /usr/bin/ ENTRYPOINT /usr/bin/crawler