diff --git a/Dockerfile b/Dockerfile index 3b78fea..a3829e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,12 @@ RUN apt-get update &&\ rm -rf /var/lib/apt/lists/* WORKDIR /go/src/app -COPY . . +COPY ["go.mod", "go.sum", "./"] RUN go mod download +COPY . . + ARG CURRENT_TAG ENV CURRENT_TAG=${CURRENT_TAG} ARG COMMIT_DATE