From 1fc278c8163f04a600a5d3e7a65a707a27b6a599 Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Tue, 3 Dec 2024 10:46:16 -0400 Subject: [PATCH] pg fix --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c888b6..2b81408 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,15 @@ 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 -ENTRYPOINT /app/bin/crawler + +FROM mcr.microsoft.com/playwrightv1.48.2-noble +#FROM alpine AS runner +RUN playwright install --with-deps +COPY --from=builder /app/bin/crawler /usr/bin/ +ENTRYPOINT /usr/bin/crawler