dockerfile geadded

This commit is contained in:
Malte Muench 2020-07-24 22:50:37 +02:00
parent 4a6d13146a
commit 7953bf948a
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -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