ci: improve docker caching

This commit is contained in:
argoyle committed 2023-01-09 17:55:42 +01:00
1 parent 9909aa726e
commit 47ae698135
1 file changed
+6 -1
+6 -1
View File
@@ -1,4 +1,9 @@
FROM golang:1.19.4 as build
FROM golang:1.19.4 as modules
WORKDIR /build
ADD go.* /build
RUN go mod download
FROM modules as build
WORKDIR /build
ENV CGO_ENABLED=0
ADD . /build