aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 33f1b34a2af7f98afc26b897179157344b7337f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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=0 GOOS=linux make install-cashierd

FROM gcr.io/distroless/static
LABEL maintainer="nsheridan@gmail.com"
WORKDIR /cashier
COPY --from=build /go/bin/cashierd /
ENTRYPOINT ["/cashierd"]