From eb7dcbcc0249551a07fbf5985565edbd25cee5c9 Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Tue, 3 Dec 2024 09:13:32 -0400 Subject: [PATCH] FIX Docker file --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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