diff options
Diffstat (limited to '')
| -rw-r--r-- | Dockerfile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1,12 +1,15 @@ -FROM golang:1.11 +FROM golang:1.11 as build -EXPOSE 8080 -RUN \ - curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz && \ - tar --strip-components=1 -xvzf docker-latest.tgz -C /usr/local/bin 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 -CMD ["make", "run"] +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"] |