diff --git a/Dockerfile b/Dockerfile index a5b602d..6920d8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,11 @@ RUN apt update && apt install git WORKDIR /app COPY . . RUN go mod tidy +RUN go run github.com/playwright-community/playwright-go/cmd/playwright@latest 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:v1.48.2-noble -#FROM alpine AS runner -COPY --from=builder /app/bin/crawler /usr/bin/ -ENTRYPOINT /usr/bin/crawler +ENTRYPOINT /app/bin/crawler