diff --git a/sync/Dockerfile b/sync/Dockerfile index c3762ba..7e0c423 100644 --- a/sync/Dockerfile +++ b/sync/Dockerfile @@ -1,6 +1,14 @@ +FROM golang:1.21-alpine AS builder + +WORKDIR /src + +COPY sync . +RUN go mod download +RUN go build -o sync + FROM busybox:1.36 -COPY sync/bin/* . +COPY --from=builder /src/sync . COPY flags/* . COPY scripts/* . LABEL org.opencontainers.image.source = "https://github.com/open-feature/test-harness"