Complete and test Dockerfile

This commit is contained in:
Fred Boniface 2023-07-25 12:48:46 +01:00
parent 0aa77f2a21
commit 5005030099
1 changed files with 8 additions and 1 deletions

View File

@ -1 +1,8 @@
FROM go:latest 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" ]