Skip to content

Commit

Permalink
Avoid redundant module downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
maximumadmin committed Mar 21, 2021
1 parent 8560613 commit b3e65be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3e65be

Please sign in to comment.