diff --git a/Dockerfile b/Dockerfile index 8a2f3bc..ecbf030 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1,8 @@ -FROM go:latest \ No newline at end of file +FROM golang:alpine as builder +WORKDIR /source +COPY ./src . +RUN go build . + +FROM scratch +COPY --from=builder /source/mq-client /bin/mq-client +CMD [ "/bin/mq-client" ] \ No newline at end of file