Skip to content

Commit 6330a9b

Browse files
committed
Adding go build and copy
1 parent 6459f86 commit 6330a9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/productcatalogservice/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ WORKDIR /usr/src/app/
88
RUN apk update \
99
&& apk add --no-cache make protobuf-dev
1010

11+
COPY ./src/productcatalogservice/ ./
1112
RUN go generate
13+
RUN go build -ldflags "-s -w" -o /go/bin/productcatalogservice/ ./
1214

1315
FROM registry.ddbuild.io/images/mirror/alpine:latest AS release
1416

0 commit comments

Comments
 (0)