From 87de7f7ad66e28d218ec8b55e607e1074c5105cd Mon Sep 17 00:00:00 2001 From: kumarabd Date: Fri, 23 Oct 2020 00:38:18 +0530 Subject: [PATCH] fixes for service docker-image Signed-off-by: kumarabd --- service/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/Dockerfile b/service/Dockerfile index ab0b698..0fac85e 100644 --- a/service/Dockerfile +++ b/service/Dockerfile @@ -1,10 +1,10 @@ -FROM golang:1.13.5 as bd +FROM golang:1.13.7 as bd WORKDIR /github.com/layer5io/sample-app-service ADD . . -RUN GOPROXY=direct GOSUMDB=off go build -a -o ./main . +RUN go build -a -o ./main . -FROM alpine:latest -COPY --from=bd /github.com/layer5io/sample-app-service/** /home/ +FROM golang:1.13.7 +COPY --from=bd /github.com/layer5io/sample-app-service/main /home/main WORKDIR /home/ EXPOSE 9091 CMD ["./main"] \ No newline at end of file