Created
September 29, 2018 10:36
-
-
Save viettranx/a6463a9e68b62f77f71731e346f16145 to your computer and use it in GitHub Desktop.
Revisions
-
viettranx created this gist
Sep 29, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ FROM golang:latest as builder RUN mkdir /app ADD . /app/ WORKDIR /app RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o demoApp . FROM alpine:latest WORKDIR /app/ COPY --from=builder /app . CMD ["/app/demoApp"]