diff options
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"] |