add docker build cache for modules

This commit is contained in:
2020-01-05 19:10:12 +01:00
parent 5c9d4cd2d9
commit 9994992c10
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ WORKDIR /app
RUN apk add --no-cache go git curl gcc g++ make
COPY go.sum .
COPY go.mod .
RUN go mod download
COPY . .
RUN go build -o task3 github.com/mainnika/a-quest/task3-backend