dockerfile geadded
This commit is contained in:
parent
4a6d13146a
commit
7953bf948a
|
@ -0,0 +1,13 @@
|
||||||
|
FROM golang:1.14 as build-env
|
||||||
|
|
||||||
|
WORKDIR /go/src/app
|
||||||
|
ADD . /go/src/app
|
||||||
|
|
||||||
|
RUN go get -d -v ./...
|
||||||
|
|
||||||
|
RUN go build -o /go/bin/app
|
||||||
|
|
||||||
|
FROM gcr.io/distroless/base
|
||||||
|
COPY --from=build-env /go/bin/app /
|
||||||
|
CMD ["/app"]
|
||||||
|
EXPOSE 8080
|
Loading…
Reference in New Issue