blob: f3a6f4890caa034b5130da258413bcb3073a204a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM golang:1.14 as build-env
WORKDIR /go/src/app
ADD . /go/src/app
ENV PATH="$GOPATH/bin:$PATH"
ENV GOBIN="$GOPATH/bin"
RUN go env
RUN go get -d -v ./...
RUN go build -o /go/bin/faila ./src
FROM gcr.io/distroless/base
COPY --from=build-env /go/bin/faila /
COPY --from=build-env /go/src/app/hosted/ /hosted/
CMD ["/faila"]
|