aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 8349905..33f1b34 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,10 @@
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}
+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