From 41858d6c594d7728b943c28b8d30114db452690e Mon Sep 17 00:00:00 2001 From: Shane C Date: Wed, 11 Sep 2024 20:02:44 -0400 Subject: [PATCH] actually make the container multi-arch --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c67507..8bec53a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,7 @@ RUN CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o build/goscan FROM alpine:3.20 -RUN apk --no-cache update && apk --no-cache upgrade && apk add wget curl -RUN wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz && tar -xf go1.23.1.linux-amd64.tar.gz -C /usr/local && rm -rf go1.23.1.linux-amd64.tar.gz - +COPY --from=builder /usr/local/go /usr/local/go COPY --from=builder /app/build/goscan /goscan COPY ./entrypoint.sh /entrypoint.sh RUN chmod +x /goscan && chmod +x /entrypoint.sh