forked from cerc-io/laconicd-deprecated
dockerfile caching
This commit is contained in:
1 parent
006655f0f8
commit
5fe9add0af
1 file changed
+4
@@ -6,6 +6,10 @@ RUN apk add --update git build-base linux-headers
|
||||
# Set working directory for the build
|
||||
WORKDIR /go/src/github.com/cerc-io/laconicd
|
||||
|
||||
# Cache Go modules
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# Add source files
|
||||
COPY . .
|
||||
|
||||
|
||||
Reference in new issue
Block a user