diff options
author | Ben Burwell <ben@benburwell.com> | 2020-04-14 00:18:46 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2020-04-14 00:18:46 -0400 |
commit | ec87a295591eb762ffa214f9c0da9ed7c9485721 (patch) | |
tree | 78372eaeefb874dcd25604528fb42e65e1bea47e /Dockerfile | |
parent | 2ce3b86e0ff69538935db3149d1ed2f24aea09a3 (diff) |
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,14 +1,12 @@ FROM golang:latest as build -LABEL maintainer="nsheridan@gmail.com" WORKDIR /build COPY go.mod . COPY go.sum . RUN go mod download COPY . . -RUN CGO_ENABLED=1 GOOS=linux make install-cashierd +RUN make cashierd -FROM gcr.io/distroless/static -LABEL maintainer="nsheridan@gmail.com" -WORKDIR /cashier -COPY --from=build /go/bin/cashierd / -ENTRYPOINT ["/cashierd"] +FROM alpine:latest +WORKDIR / +COPY --from=build /build/cashierd / +CMD ["/cashierd"] |