Complete and test Dockerfile
This commit is contained in:
parent
0aa77f2a21
commit
5005030099
@ -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" ]
|
Loading…
Reference in New Issue
Block a user