diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ed2e4aa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM --platform=$BUILDPLATFORM golang:1.23 AS build + +ARG BUILDPLATFORM +ARG TARGETARCH +ARG VERSION + +COPY . /src +RUN cd /src && GOOS=linux GOARCH=$TARGETARCH go build -o /bin/argocd-watcher *.go + +FROM golang:1.23 + +COPY --from=build /bin/argocd-proxy /usr/local/bin/argocd-watcher + +ENTRYPOINT ["/usr/local/bin/argocd-watcher"] \ No newline at end of file