From fc448b7920ae7b1fbde2d89ffe63a26ddb578c57 Mon Sep 17 00:00:00 2001 From: JenTing Date: Sun, 8 Dec 2024 14:39:10 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index da8df14..d0dae9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ ARG BUILDPLATFORM ARG TARGETARCH ARG VERSION -COPY . /src -RUN cd /src && GOOS=linux GOARCH=$TARGETARCH go build -o /bin/argocd-proxy -race -v . +COPY . . +RUN GOOS=linux GOARCH=$TARGETARCH go build -o /bin/argocd-watcher . FROM golang:1.23 -COPY --from=build /bin/argocd-proxy /usr/local/bin/argocd-watcher +COPY --from=build /bin/argocd-watcher /usr/local/bin/argocd-watcher ENTRYPOINT ["/usr/local/bin/argocd-watcher"]