diff --git a/Dockerfile b/Dockerfile index cef4861..3a0bb1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM golang:alpine AS builder +FROM golang:latest AS builder ARG TARGETARCH ARG version=not-set ARG SHORTSHA=not-set -RUN apk add git +RUN apt update && apt install git WORKDIR /app COPY . . RUN go mod tidy @@ -12,7 +12,8 @@ RUN go build -o bin/crawler \ -X main.Version=${version} \ -X main.Aarch=${TARGETARCH}" ./cmd/crawler/main.go -FROM alpine AS runner +FROM mcr.microsoft.com/playwright +#FROM alpine AS runner COPY --from=builder /app/bin/crawler /usr/bin/ WORKDIR /app ENTRYPOINT /usr/bin/crawler