blob: 0f8be2f24dac383cf5ef8b2cbc8a2e7d7fcd8820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
FROM golang:1.11 as build
ENV GO111MODULE=on
RUN mkdir -p /go/src/go.uber.org/sally
WORKDIR /go/src/go.uber.org/sally
ADD . /go/src/go.uber.org/sally/
RUN go mod vendor
RUN make grumps-build && ls -la /go/src/go.uber.org/sally/_tmp/sally
FROM scratch
EXPOSE 8080
COPY sally.yaml /
COPY --from=build /go/src/go.uber.org/sally/_tmp/sally /sally
ENTRYPOINT ["/sally"]
|