aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 273c1becea21a98d885d0e74c50b7c05b7b1f967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM golang:latest as build
LABEL maintainer="nsheridan@gmail.com"
ARG SRC_DIR=/go/src/github.com/nsheridan/cashier
WORKDIR ${SRC_DIR}
ADD . ${SRC_DIR}
RUN CGO_ENABLED=0 GOOS=linux go install -a -installsuffix static ./cmd/cashierd

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