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"]