From 3f98fe8569e39121dc2cd029558feecb95fb0b08 Mon Sep 17 00:00:00 2001 From: Michael Doubez Date: Thu, 21 Nov 2024 23:12:05 +0100 Subject: [PATCH] Fix Docker build --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e1e2c4a..a385dba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,11 @@ RUN apk add git RUN apk add build-base WORKDIR /exporter -COPY .git Makefile *.go go.mod go.sum /exporter/ +COPY Makefile go.mod go.sum /exporter/ +COPY .git/ ./.git/ +COPY cmd/ ./cmd/ +COPY internal/ ./internal/ +RUN ls -al RUN make build RELEASE_MODE=1 FROM alpine:3.19